-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc-base.json
47 lines (47 loc) · 1.37 KB
/
.eslintrc-base.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
{
"extends": [
"eslint:recommended"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"requireConfigFile": false
},
"rules": {
"indent": ["error", 4, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"eol-last": ["error"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"max-len": ["error", {
"code": 120,
"ignoreStrings": true,
"tabWidth": 4,
"ignoreTemplateLiterals": true
}],
"one-var": ["error", "never"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
"prefer-const": "error",
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"no-multi-spaces": "error",
"arrow-parens": ["error", "as-needed"],
"no-var": "error",
"require-await": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"quote-props": ["error", "as-needed"],
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["all", "single", "multiple", "none"]
}],
"sort-vars": "error",
"comma-dangle": ["error", "never"],
"no-use-before-define": "error",
"no-trailing-spaces": "error",
"key-spacing": ["error", { "afterColon": true }]
}
}