-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
51 lines (51 loc) · 1.09 KB
/
.eslintrc.js
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
48
49
50
51
module.exports = {
root: true,
extends: [ 'plugin:vue/recommended' ],
parserOptions: {
parser: "babel-eslint",
sourceType: "module",
ecmaVersion: 2017
},
globals: {
PKG_VERSION: true,
},
env: {
browser: true,
node: true,
es6: true
},
settings: {
'import/resolver': {
node: null,
webpack: {
config: 'build/webpack-configs/base.js',
},
},
},
rules: {
'semi': 'error',
'import/no-named-as-default': 0,
'unicorn/consistent-function-scoping': 0,
'vue/attributes-order': 0,
'vue/name-property-casing': 0,
'vue/no-v-html': 0,
'no-undefined': 0,
'no-confusing-arrow': 1,
'no-console': 1,
'no-warning-comments': 1,
'prefer-destructuring': 0,
'vue/max-attributes-per-line': 0,
'vue/html-closing-bracket-spacing': 0,
"vue/no-parsing-error": ["error", {
"x-invalid-namespace": false
}],
},
overrides: [ {
files: [ 'src/**', 'dev/**' ],
rules: {
'unicorn/no-for-loop': 0,
'unicorn/prefer-includes': 0,
'unicorn/prefer-node-append': 0,
},
} ],
}