This repository was archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
155 lines (151 loc) · 5.29 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"es6": true,
"jasmine": true
},
"rules": {
"no-console": "warn",
"no-debugger": "warn",
"valid-jsdoc": [ "warn", {
"requireReturn": false,
"preferType": {
"object": "Object"
},
"prefer": {
"returns": "return",
"arg": "param",
"argument": "param"
}
} ],
"array-callback-return": "error",
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"dot-location": [ "error", "property" ],
"eqeqeq": [ "error", "allow-null" ],
"guard-for-in": "error",
"no-alert": "error",
"no-caller": "error",
"no-else-return": "error",
"no-empty-pattern": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": [ "error", { "allow": [ "!!" ], "string": false } ],
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-loop-func": "error",
"no-multi-spaces": "warn",
"no-multi-str": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-void": "error",
"no-with": "error",
"radix": "error",
"wrap-iife": [ "error", "inside" ],
"yoda": [ "error", "never" ],
"no-label-var": "error",
"no-shadow-restricted-names": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-unused-vars": "warn",
"no-use-before-define": [ "error", { "functions": false, "classes": false } ],
"array-bracket-spacing": [ "warn", "always" ],
"block-spacing": [ "warn", "always" ],
"brace-style": [ "warn", "stroustrup", { "allowSingleLine": true } ],
"camelcase": [ "warn", { "properties": "never" } ],
"comma-dangle": "warn",
"comma-spacing": "warn",
"comma-style": "warn",
"computed-property-spacing": [ "warn", "always" ],
"eol-last": [ "warn", "unix" ],
"indent": [ "warn", 3, { "SwitchCase": 1 } ],
"key-spacing": [ "warn", { "beforeColon": false } ],
"keyword-spacing": [ "warn", {
"after": true,
"overrides": {
"catch": { "after": false },
"for": { "after": false },
"if": { "after": false },
"switch": { "after": false },
"while": { "after": false }
}
} ],
"linebreak-style": [ "warn", "unix" ],
"max-depth": [ "warn", { "max": 3 } ],
"max-len": [ "warn", { "code": 110 } ],
"max-nested-callbacks": [ "warn", { "max": 9 } ],
"max-statements-per-line": [ "warn", { "max": 2 } ],
"new-cap": [ "warn", { "capIsNew": false } ],
"new-parens": "warn",
"no-array-constructor": "warn",
"no-bitwise": "warn",
"no-lonely-if": "warn",
"no-mixed-operators": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-multiple-empty-lines": [ "warn", { "max": 2 } ],
"no-nested-ternary": "warn",
"no-unneeded-ternary": "warn",
"no-new-object": "warn",
"no-spaced-func": "warn",
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"object-curly-spacing": [ "warn", "always" ],
"one-var": [ "warn", "never" ],
"operator-linebreak": [ "error", "after" ],
"quotes": [ "warn", "single", { "avoidEscape": true } ],
"semi": "warn",
"semi-spacing": [ "warn", { "before": false, "after": true } ],
"space-before-function-paren": [ "warn", "never" ],
"space-infix-ops": "warn",
"space-unary-ops": [ "warn", {
"words": true,
"nonwords": false
} ],
"unicode-bom": "error",
"arrow-parens": [ "warn", "as-needed" ],
"arrow-spacing": "warn",
"no-duplicate-imports": "warn",
"no-restricted-imports": [ "error",
"assert", "buffer", "child_process", "cluster", "crypto", "dgram", "dns", "domain", "events",
"freelist", "fs", "http", "https", "module", "net", "os", "path", "punycode", "querystring",
"readline", "repl", "smalloc", "stream", "string_decoder", "sys", "timers", "tls", "tracing",
"tty", "url", "util", "vm", "zlib"
],
"no-useless-computed-key": "warn",
"no-useless-rename": "warn",
"no-var": "error",
"object-shorthand": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"rest-spread-spacing": [ "warn", "never" ],
"space-in-parens": [ "warn", "always" ],
"template-curly-spacing": [ "warn", "never" ]
}
}