diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-05-20 18:09:14 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-05-20 18:09:14 +0000 |
| commit | b436e0dd12167719c0f918a27df3ab4f43113d4c (patch) | |
| tree | 85639dcf134f8ec20d408f203532cc11eb6a3561 /.eslintrc.js | |
| parent | 5b8f5eddbf2d39ed8242255fd6188f1275561195 (diff) | |
| parent | 15b3651a3070cffeadeca83255e2052f519d5db8 (diff) | |
Merge branch 'webpack-4-dart-sass' into 'develop'
Massive update for dependencies
See merge request pleroma/pleroma-fe!734
Diffstat (limited to '.eslintrc.js')
| -rw-r--r-- | .eslintrc.js | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 800f9a4f..b526df67 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,28 @@ 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/valid-v-for': 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 } } |
