aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js32
1 files changed, 28 insertions, 4 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 800f9a4f..8c95cfb9 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,14 +1,17 @@
module.exports = {
root: true,
- parser: 'babel-eslint',
parserOptions: {
+ parser: 'babel-eslint',
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
- extends: 'standard',
+ extends: [
+ 'standard',
+ 'plugin:vue/recommended'
+ ],
// required to lint *.vue files
plugins: [
- 'html'
+ 'vue'
],
// add your custom rules here
rules: {
@@ -17,6 +20,27 @@ module.exports = {
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
- 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+ // 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,
+ 'vue/require-prop-types': 1,
+ 'vue/no-use-v-if-with-v-for': 1,
+ 'indent': 1,
+ 'import/first': 1, // ????
+ 'import-first': 1,
+ 'object-curly-spacing': 1,
+ 'prefer-promise-reject-errors': 1,
+ 'eol-last': 1,
+ 'no-return-await': 1,
+ 'no-multi-spaces': 1,
+ 'no-trailing-spaces': 1,
+ 'no-unused-expressions': 1,
+ 'no-mixed-operators': 1,
+ 'camelcase': 1,
+ 'no-multiple-empty-lines': 1
}
}