forked from samteb/vue-2-webpack-4-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
59 lines (59 loc) · 1.56 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module",
"ecmaVersion": 2018
},
"extends": [
"eslint:recommended",
"plugin:vue/base",
"plugin:vue/essential",
"plugin:vue/strongly-recommended",
"plugin:vue/recommended"
],
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"arrow-spacing": "error",
"constructor-super": "error",
"curly": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"keyword-spacing": "error",
"no-console": 0,
"no-const-assign": "error",
"no-debugger": 0,
"no-duplicate-imports": "error",
"no-multiple-empty-lines": [ 2, { "max": 2, "maxEOF": 1 } ],
"no-this-before-super": "error",
"no-unreachable": "error",
"no-unused-vars": 0,
"no-useless-escape": 0,
"no-var": "error",
"object-curly-spacing": [ "error", "always" ],
"one-var": ["error", { "var": "never", "let": "never", "const": "never" }],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"quotes": [ "error", "single", { "allowTemplateLiterals": true } ],
"semi": ["error", "always"],
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
"space-before-function-paren": "error",
"valid-typeof": "error",
"vue/component-name-in-template-casing": ["error", "PascalCase",
{
"ignores": [
"router-link",
"router-view",
"transition"
]
}
]
},
"plugins": [
"vue"
]
}