fox-fe/.eslintrc.js

47 lines
1.3 KiB
JavaScript
Raw Normal View History

2016-10-26 14:46:32 +00:00
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
2016-10-26 14:46:32 +00:00
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: [
'standard',
'plugin:vue/recommended'
],
2016-10-26 14:46:32 +00:00
// required to lint *.vue files
plugins: [
'vue'
2016-10-26 14:46:32 +00:00
],
// add your custom rules here
2019-02-07 08:05:59 +00:00
rules: {
2016-10-26 14:46:32 +00: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-10 19:04:12 +00: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-13 18:54:25 +00:00
'vue/valid-v-for': 1,
2019-04-10 19:04:12 +00:00
'vue/require-prop-types': 1,
'vue/no-use-v-if-with-v-for': 1,
'indent': 1,
'import/first': 1,
2019-04-10 19:04:12 +00: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-10 19:09:39 +00:00
'no-unused-expressions': 1,
'no-mixed-operators': 1,
'camelcase': 1,
2019-04-10 19:04:12 +00:00
'no-multiple-empty-lines': 1
2016-10-26 14:46:32 +00:00
}
}