pleroma-fe/.eslintrc.js

47 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

2016-10-27 01:46:32 +11:00
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
2016-10-27 01:46:32 +11:00
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: [
'standard',
'plugin:vue/recommended'
],
2016-10-27 01:46:32 +11:00
// required to lint *.vue files
plugins: [
'vue'
2016-10-27 01:46:32 +11:00
],
// add your custom rules here
2019-02-07 19:05:59 +11:00
rules: {
2016-10-27 01:46:32 +11:00
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
2019-04-11 05:04:12 +10:00
// Webpack 4 update commit, most of these probably should be fixed and removed in a separate MR
// A lot of errors come from .vue files that are now properly linted
'vue/valid-v-if': 1,
'vue/use-v-on-exact': 1,
'vue/no-parsing-error': 1,
'vue/require-v-for-key': 1,
2019-05-14 04:54:25 +10:00
'vue/valid-v-for': 1,
2019-04-11 05:04:12 +10:00
'vue/require-prop-types': 1,
'vue/no-use-v-if-with-v-for': 1,
'indent': 1,
'import/first': 1,
2019-04-11 05:04:12 +10:00
'object-curly-spacing': 1,
'prefer-promise-reject-errors': 1,
'eol-last': 1,
'no-return-await': 1,
'no-multi-spaces': 1,
'no-trailing-spaces': 1,
2019-04-11 05:09:39 +10:00
'no-unused-expressions': 1,
'no-mixed-operators': 1,
'camelcase': 1,
2019-04-11 05:04:12 +10:00
'no-multiple-empty-lines': 1
2016-10-27 01:46:32 +11:00
}
}