forked from CPEN321HELP/CPEN321
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
214 lines (209 loc) · 6.69 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"extends": [
"standard",
"eslint:recommended",
"plugin:security/recommended",
"plugin:node/recommended",
"plugin:regexp/recommended"
],
"env": {
"es6": true,
"node": true,
"browser": true,
"commonjs": true,
"jquery": true,
"phantomjs": true,
"jasmine": true,
"mocha": true,
"amd": true,
"worker": true,
"qunit": true
},
"plugins": ["eslint-plugin-node", "eslint-plugin-regexp", "eslint-plugin-security"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"settings": {
"jest": {
"version": 26
}
},
"rules": {
"prettier/prettier": "off",
"constructor-super": "error",
"for-direction": "error",
"getter-return": "error",
"no-async-promise-executor": "error",
"no-class-assign": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-const-assign": "error",
"no-constant-condition": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-ex-assign": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-import-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-loss-of-precision": "error",
"no-misleading-character-class": "error",
"no-new-symbol": "error",
"no-obj-calls": "error",
"no-prototype-builtins": "error",
"no-self-assign": "error",
"no-setter-return": "error",
"no-sparse-arrays": "error",
"no-this-before-super": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unsafe-optional-chaining": "error",
"no-unused-vars": "error",
"no-useless-backreference": "error",
"use-isnan": "error",
"valid-typeof": "error",
"no-case-declarations": "error",
"no-delete-var": "error",
"no-empty": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-nonoctal-decimal-escape": "error",
"no-octal": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-shadow-restricted-names": "error",
"no-unused-labels": "error",
"no-useless-catch": "error",
"no-useless-escape": "error",
"no-with": "error",
"require-yield": "error",
"no-mixed-spaces-and-tabs": "error",
"no-global-assign": "off",
"no-undef": "off",
"indent": "off",
"no-tabs": "off",
"quotes": "off",
"quote-props": "off",
"semi": "off",
"key-spacing": "off",
"object-curly-spacing": "off",
"space-before-function-paren": "off",
"arrow-spacing": "off",
"space-before-blocks": "off",
"eqeqeq": "off",
"no-var": "off",
"comma-spacing": "off",
"object-curly-newline": "off",
"keyword-spacing": "off",
"no-trailing-spaces": "off",
"camelcase": "off",
"no-multiple-empty-lines": "off",
"spaced-comment": "off",
"space-infix-ops": "off",
"space-in-parens": "off",
"padded-blocks": "off",
"semi-spacing": "off",
"brace-style": "off",
"no-multi-spaces": "off",
"eol-last": "off",
"no-template-curly-in-string": "off",
"comma-dangle": "off",
"prefer-const": "off",
"no-useless-return": "off",
"operator-linebreak": "off",
"dot-notation": "off",
"no-throw-literal": "off",
"space-unary-ops": "off",
"array-bracket-spacing": "off",
"prefer-promise-reject-errors": "off",
"func-call-spacing": "off",
"object-property-newline": "off",
"block-spacing": "off",
"lines-between-class-members": "off",
"no-whitespace-before-property": "off",
"curly": "off",
"node/no-exports-assign": "error",
"node/no-extraneous-import": "error",
"node/no-extraneous-require": "error",
"node/no-missing-import": "error",
"node/no-unpublished-bin": "error",
"node/no-unpublished-import": "error",
"node/no-unsupported-features/es-builtins": "error",
"node/no-unsupported-features/es-syntax": "error",
"node/process-exit-as-throw": "error",
"node/shebang": "error",
"node/no-deprecated-api": "error",
"node/no-missing-require": "off",
"node/no-unpublished-require": "off",
"node/no-unsupported-features/node-builtins": "off",
"regexp/no-dupe-disjunctions": "error",
"regexp/no-empty-alternative": "error",
"regexp/no-empty-capturing-group": "error",
"regexp/no-empty-group": "error",
"regexp/no-empty-lookarounds-assertion": "error",
"regexp/no-escape-backspace": "error",
"regexp/no-invalid-regexp": "error",
"regexp/no-lazy-ends": "error",
"regexp/no-optional-assertion": "error",
"regexp/no-potentially-useless-backreference": "error",
"regexp/no-super-linear-backtracking": "error",
"regexp/no-useless-assertions": "error",
"regexp/no-useless-dollar-replacements": "error",
"regexp/strict": "error",
"regexp/confusing-quantifier": "error",
"regexp/control-character-escape": "error",
"regexp/negation": "error",
"regexp/no-dupe-characters-character-class": "error",
"regexp/no-invisible-character": "error",
"regexp/no-legacy-features": "error",
"regexp/no-non-standard-flag": "error",
"regexp/no-obscure-range": "error",
"regexp/no-trivially-nested-assertion": "error",
"regexp/no-trivially-nested-quantifier": "error",
"regexp/no-unused-capturing-group": "error",
"regexp/no-useless-character-class": "error",
"regexp/no-useless-flag": "error",
"regexp/no-useless-lazy": "error",
"regexp/no-useless-quantifier": "error",
"regexp/no-useless-range": "error",
"regexp/no-useless-two-nums-quantifier": "error",
"regexp/no-zero-quantifier": "error",
"regexp/optimal-lookaround-quantifier": "error",
"regexp/optimal-quantifier-concatenation": "error",
"regexp/prefer-predefined-assertion": "error",
"regexp/prefer-range": "error",
"regexp/match-any": "error",
"regexp/no-useless-escape": "error",
"regexp/no-useless-non-capturing-group": "error",
"regexp/prefer-character-class": "error",
"regexp/prefer-d": "error",
"regexp/prefer-plus-quantifier": "error",
"regexp/prefer-question-quantifier": "error",
"regexp/prefer-star-quantifier": "error",
"regexp/prefer-unicode-codepoint-escapes": "error",
"regexp/prefer-w": "error",
"regexp/sort-flags": "error",
"security/detect-disable-mustache-escape": "error",
"security/detect-eval-with-expression": "error",
"security/detect-no-csrf-before-method-override": "error",
"security/detect-non-literal-fs-filename": "error",
"security/detect-non-literal-regexp": "error",
"security/detect-non-literal-require": "error",
"security/detect-possible-timing-attacks": "error",
"security/detect-pseudoRandomBytes": "error",
"security/detect-unsafe-regex": "error",
"security/detect-object-injection": "off"
}
}