-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (62 loc) · 1.44 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
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint",
sourceType: "module"
},
env: {
browser: true,
node: true,
es6: true
},
extends: ["plugin:vue/recommended", "eslint:recommended", "cherryfe"],
rules: {
"vue/no-v-html": 0,
"vue/array-bracket-spacing": 1,
"vue/arrow-spacing": 1,
"vue/block-spacing": 1,
"vue/comma-dangle": 1,
"vue/component-name-in-template-casing": [
1,
"kebab-case",
{ registeredComponentsOnly: false }
],
'vue/eqeqeq': 1,
'vue/key-spacing': 1,
'vue/keyword-spacing': 1,
'vue/match-component-file-name': 1,
'vue/no-boolean-default': 0,
'vue/no-empty-pattern': 1,
'vue/no-irregular-whitespace': 1,
'vue/no-reserved-component-names': 1,
'vue/no-static-inline-styles': 0,
'vue/no-unsupported-features': 1,
'vue/object-curly-spacing': [2, "always"],
'vue/padding-line-between-blocks': 1,
'vue/require-direct-export': 1,
'vue/require-name-property': 1,
'vue/script-indent': [1, 2, { switchCase: 1 }],
'vue/space-unary-ops': 1,
'require-unicode-regexp': 0,
'vue/no-unused-components': 1,
'no-new': 0,
'no-bitwise': 0
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 0
}
},
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
};