-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
68 lines (68 loc) · 1.82 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
62
63
64
65
66
67
68
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jasmine": true,
"mocha": true,
"node": true,
"phantomjs": true,
"serviceworker": true,
"worker": true
},
"globals": {
"console": false,
"inject": false,
"Modernizr": false,
"sinon": false
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"root": true,
"rules": {
"array-bracket-spacing": [2, "never"],
"brace-style": 2,
"camelcase": 2,
"comma-dangle": 2,
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": 2,
"computed-property-spacing": [2, "never"],
"curly": 2,
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": [2, "allow-null"],
"indent": [2, 4],
"key-spacing": 2,
"keyword-spacing": [2, {"before": true, "after": true}],
"max-len": [2, {"code": 120, "ignoreComments": true, "ignoreUrls": true}],
"new-cap": 2,
"newline-after-var": 2,
"no-caller": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": [2, {"max": 1, "maxEOF": 0}],
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-unused-vars": 2,
"object-curly-spacing": [2, "never"],
"one-var-declaration-per-line": 2,
"operator-linebreak": [2, "before", { "overrides": { "?": "after", ":": "after", "+": "after" }}],
"quotes": [2, "single"],
"semi": [2, "always"],
"semi-spacing": [2, { "before": false, "after": true }],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"strict": [2, "global"],
"valid-jsdoc": [2, {
"requireParamDescription": false,
"requireReturn": false,
"requireReturnDescription": false
}],
"wrap-iife": [2, "inside"]
}
}