/
.eslintrc
63 lines (63 loc) · 2.05 KB
/
.eslintrc
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
63
{
"root": true,
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},
"extends": "airbnb-base",
// check if imports actually resolve
"settings": {
"import/core-modules": ["vue-resume.js"]
},
// add your custom rules here
"rules": {
// don"t require .vue extension when importing
"import/extensions": ["error", "always", {
"js": "never",
"vue": "never"
}],
// allow optionalDependencies
"import/no-extraneous-dependencies": ["error", {
"optionalDependencies": ["test/unit/index.js"]
}],
"no-debugger": 2,
"comma-dangle": ["error", "never"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"brace-style": ["error", "stroustrup"],
"global-require": 0,
"no-param-reassign": 1,
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"no-lonely-if": 2,
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"no-constant-condition": ["error", { "checkLoops": false }],
"quote-props": ["error", "consistent-as-needed"],
"prefer-destructuring": ["error", {
"array": true,
"object": true
}, {
"enforceForRenamedProperties": false
}],
"arrow-parens": ["error", "as-needed"],
"no-confusing-arrow": ["error", {"allowParens": true}],
"curly": ["error", "all"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 1 }],
"id-length": ["error", {"min": 1, "max": 28, "exceptions": ["i", "j", "k", "u", "_", "$", "t", "r", "l"]}],
"no-plusplus": 0,
"no-restricted-syntax": [2,
"LabeledStatement",
"WithStatement"
],
"no-console": 0
}
}