-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
72 lines (72 loc) · 2.18 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
69
70
71
72
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"consistent-return": 2,
"curly": 2,
"default-case": 2,
"dot-location": [ 2, "property" ],
"eqeqeq": 1,
"no-else-return": 1,
"no-floating-decimal": 1,
"no-lone-blocks": 1,
"no-loop-func": 2,
"no-self-compare": 1,
"no-sequences": 1,
"no-unmodified-loop-condition": 1,
"no-unused-expressions": 1,
"vars-on-top": 2,
"yoda": 1,
"array-bracket-spacing": 1,
"block-spacing": 1,
"brace-style": 1,
"camelcase": 2,
"comma-spacing": 1,
"comma-style": 1,
"computed-property-spacing": 1,
"eol-last": 1,
"indent": [ 2, 2, {"SwitchCase": 1} ],
"key-spacing": [ 1, {"align": "colon"} ],
"keyword-spacing": 1,
"linebreak-style": [ 2, "unix" ],
"max-depth": 2,
"complexity": 1,
"max-len": [1, {"code": 80, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreRegExpLiterals": true}],
"max-nested-callbacks": 1,
"max-statements": [ 2, 25 ],
"max-statements-per-line": 1,
"new-cap": 2,
"newline-after-var": 1,
"newline-per-chained-call": 1,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 1,
"no-trailing-spaces": 1,
"no-unneeded-ternary": 2,
"no-warning-comments": [2, {"terms": ["todo", "fixme", "xxx", "bug:"] }],
"no-whitespace-before-property": 1,
"object-curly-spacing": 1,
"one-var": [1, "never"],
"one-var-declaration-per-line": 1,
"operator-assignment": 2,
"operator-linebreak": [1, "before"],
"padded-blocks": [1, "never"],
"quote-props": [1, "consistent-as-needed"],
"quotes": [ 2, "single", "avoid-escape" ],
"valid-jsdoc": 1,
"require-jsdoc": [2, { "require": {"FunctionDeclaration":true, "MethodDefinition":true, "ClassDeclaration":true}}],
"semi": [ 2, "always" ],
"semi-spacing": 1,
"space-before-blocks": 1,
"space-before-function-paren": [1, "never"],
"space-in-parens": 1,
"space-infix-ops": 1,
"space-unary-ops": 1,
"spaced-comment": [1, "always", {"block":{"markers":["!"], "exceptions":["*"]}}],
"generator-star-spacing": 1,
"yield-star-spacing": 1
}
}