-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
67 lines (63 loc) · 1.72 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
64
65
66
67
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": false,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"jsx": true
},
"rules": {
// overrides from 'recommended'
"comma-dangle": 0,
"no-console": 0,
// strict
"strict": [2, "global"],
// formatting, spaces, operators
"indent": [2, 2, {"SwitchCase": 1}],
"quotes": [2, "single"],
"keyword-spacing": [2, {"after": true}],
"space-before-blocks": [2, "always"],
"dot-location": [2, "property"],
"space-infix-ops": 2,
"key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
"operator-linebreak": [2, "after"],
"no-spaced-func": 2,
"comma-spacing": [1, {"before": false, "after": true}],
"no-multiple-empty-lines": [2, {"max": 2}],
"camelcase": [0, {"properties": "never"}],
"space-before-function-paren": [0, "never"],
// coding style
"curly": 2,
"wrap-iife": [2, "inside"],
"eqeqeq": 2,
"no-use-before-define": [2, "nofunc"],
"no-unused-vars": 2,
"no-unexpected-multiline": 2,
"no-multi-str": 2,
"no-irregular-whitespace": 2,
// os/git options
"no-trailing-spaces": 2,
"linebreak-style": [2, "unix"],
"eol-last": 2
}
}