-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
99 lines (99 loc) · 3.5 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"array-bracket-spacing": [ "error", "never" ],
"arrow-spacing": [ "error", { "before": true, "after": true } ],
"comma-style": [ "error", "last" ],
"complexity": [ "warn", 8 ],
"computed-property-spacing": [ "error", "never" ],
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"dot-location": [ "error", "property" ],
"eol-last": "warn",
"eqeqeq": "error",
"guard-for-in": "error",
"indent": [ "error", 2 ],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
"keyword-spacing": [ "error", { "before": true, "after": true } ],
"linebreak-style": [ "error", "unix" ],
"max-depth": [ "error", 5 ],
"max-len": [ "warn", 140 ],
"new-cap": "off",
"new-parens": "error",
"no-alert": "error",
"no-caller": "error",
"no-cond-assign": [ "error", "always" ],
"no-console": "off",
"no-constant-condition": "error",
"no-delete-var": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-eval": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-iterator": "error",
"no-labels": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": [ "warn", { "max": 1 } ],
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-new": "error",
"no-param-reassign": "error",
"no-proto": "warn",
"no-redeclare": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-shadow": "warn",
"no-spaced-func": "error",
"no-trailing-spaces": [ "error", { "skipBlankLines": false } ],
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-use-before-define": "off",
"object-curly-spacing": ["error", "always"],
"one-var": [ "error", "never" ],
"operator-assignment": [ "error", "always" ],
"padded-blocks": [ "error", "never" ],
"prefer-const": "warn",
"quotes": [ "error", "single" ],
"semi": [ "error", "always" ],
"space-before-blocks": [ "error", "always" ],
"space-before-function-paren": [ "error", { "anonymous": "always", "named": "never" } ],
"space-infix-ops": [ "error", { "int32Hint": true } ],
"space-unary-ops": [ "error", { "words": true, "nonwords": false } ],
"spaced-line-comment": "off",
"strict": "error",
"valid-typeof": "error",
"vars-on-top": "off",
"wrap-iife": [ "error", "inside" ],
"yoda": [ "error", "never" ]
},
"globals": {
},
"env": {
"browser": true,
"node": true,
"jasmine": true
}
}