aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.js
blob: b526df6794fde49bd97e91c1d628f9f8b27994b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
  root: true,
  parserOptions: {
    parser: 'babel-eslint',
    sourceType: 'module'
  },
  // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
  extends: [
    'standard',
    'plugin:vue/recommended'
  ],
  // required to lint *.vue files
  plugins: [
    'vue'
  ],
  // add your custom rules here
  rules: {
    // 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,
    // 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
  }
}