-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
61 lines (60 loc) · 1.71 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
60
61
{
"root": true,
"env": {
"node": true
},
"ecmaFeatures": {
"modules": true,
"classes": true,
"arrowFunctions": true,
"blockBindings": true,
"forOf": true,
"destructuring": true,
"defaultParams": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"jsx": false,
"templateStrings": true,
"destructuring": true,
"defaultParams": true,
"spread": true,
"restParams": true
},
"extends": "eslint:recommended",
"plugins": [],
"rules": {
"strict": 0,
"no-console": 0,
"arrow-body-style": [ 2, "as-needed" ],
"arrow-parens": [ 2, "as-needed" ],
"brace-style": [ 2, "1tbs", { "allowSingleLine": true } ],
"comma-dangle": [ 2, "always-multiline" ],
"consistent-this": [ 1, "that" ],
"constructor-super": 2,
"eol-last": 2,
"handle-callback-err": [ 2, "^(err|.+Err(or)?)$" ],
"indent": [ 2, 2, { "SwitchCase": 1 } ],
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-multiple-empty-lines": [ 2, { "max": 1 } ],
"no-path-concat": 2,
"no-shadow-restricted-names": 2,
"no-this-before-super": 2,
"no-throw-literal": 2,
"no-trailing-spaces": [ 2, { "skipBlankLines": false } ],
"no-underscore-dangle": 0,
"no-unexpected-multiline": 2,
"no-unused-vars": [ 2, { "vars": "all", "args": "none" } ],
"no-use-before-define": [ 2, "nofunc" ],
"no-var": 2,
"object-curly-spacing": [ 2, "always" ],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-template": 2,
"quotes": [ 2, "single", "avoid-escape" ],
"semi": 2,
"space-after-keywords": [ 2, "always" ]
}
}