@eslinted/defaults 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.markdownlint.jsonc +1 -1
- package/LICENSE +0 -1
- package/dist/rules/index.d.ts +1 -0
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.js +7 -7
- package/dist/rules/scopes/css/enable.js.map +1 -1
- package/dist/rules/scopes/html/enable.js +35 -35
- package/dist/rules/scopes/html/enable.js.map +1 -1
- package/dist/rules/scopes/js/enable-stylistic.d.ts +1 -0
- package/dist/rules/scopes/js/enable-stylistic.d.ts.map +1 -1
- package/dist/rules/scopes/js/enable-stylistic.js +71 -67
- package/dist/rules/scopes/js/enable-stylistic.js.map +1 -1
- package/dist/rules/scopes/js/enable.js +148 -148
- package/dist/rules/scopes/js/enable.js.map +1 -1
- package/dist/rules/scopes/js/index.d.ts +1 -0
- package/dist/rules/scopes/js/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable-ext.js +21 -21
- package/dist/rules/scopes/json/enable-ext.js.map +1 -1
- package/dist/rules/scopes/json/enable.js +20 -20
- package/dist/rules/scopes/json/enable.js.map +1 -1
- package/dist/rules/scopes/jsonc/override.js +2 -2
- package/dist/rules/scopes/jsonc/override.js.map +1 -1
- package/dist/rules/scopes/mocha/enable-chai-expect.js +4 -4
- package/dist/rules/scopes/mocha/enable-chai-expect.js.map +1 -1
- package/dist/rules/scopes/mocha/enable-chai.js +2 -2
- package/dist/rules/scopes/mocha/enable-chai.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +18 -18
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/enable-ext.js +3 -3
- package/dist/rules/scopes/svelte/enable-ext.js.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +63 -63
- package/dist/rules/scopes/svelte/enable.js.map +1 -1
- package/dist/rules/scopes/ts/enable-ext.js +16 -16
- package/dist/rules/scopes/ts/enable-ext.js.map +1 -1
- package/dist/rules/scopes/ts/enable.js +89 -89
- package/dist/rules/scopes/ts/enable.js.map +1 -1
- package/dist/rules/scopes/yml/enable-ext.js +9 -9
- package/dist/rules/scopes/yml/enable-ext.js.map +1 -1
- package/dist/rules/scopes/yml/enable.js +17 -17
- package/dist/rules/scopes/yml/enable.js.map +1 -1
- package/dist/rules/strings/state.d.ts +1 -1
- package/dist/rules/strings/state.d.ts.map +1 -1
- package/dist/rules/strings/state.js +1 -1
- package/dist/rules/strings/state.js.map +1 -1
- package/package.json +2 -2
- package/src/rules/scopes/css/enable.ts +7 -7
- package/src/rules/scopes/html/enable.ts +35 -35
- package/src/rules/scopes/js/enable-stylistic.ts +71 -67
- package/src/rules/scopes/js/enable.ts +148 -148
- package/src/rules/scopes/json/enable-ext.ts +21 -21
- package/src/rules/scopes/json/enable.ts +20 -20
- package/src/rules/scopes/jsonc/override.ts +2 -2
- package/src/rules/scopes/mocha/enable-chai-expect.ts +4 -4
- package/src/rules/scopes/mocha/enable-chai.ts +2 -2
- package/src/rules/scopes/mocha/enable.ts +18 -18
- package/src/rules/scopes/svelte/enable-ext.ts +3 -3
- package/src/rules/scopes/svelte/enable.ts +63 -63
- package/src/rules/scopes/ts/enable-ext.ts +16 -16
- package/src/rules/scopes/ts/enable.ts +89 -89
- package/src/rules/scopes/yml/enable-ext.ts +9 -9
- package/src/rules/scopes/yml/enable.ts +17 -17
- package/src/rules/strings/state.ts +1 -1
- package/tsconfig.json +22 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
|
|
3
|
+
ON,
|
|
4
4
|
OFF,
|
|
5
5
|
never,
|
|
6
6
|
always,
|
|
@@ -18,78 +18,78 @@ export const Enable = {
|
|
|
18
18
|
// #region PROBLEMS
|
|
19
19
|
// DOC: https://eslint.org/docs/latest/rules/#possible-problems
|
|
20
20
|
"array-callback-return": [
|
|
21
|
-
|
|
21
|
+
ON,
|
|
22
22
|
{
|
|
23
23
|
allowImplicit: false,
|
|
24
24
|
checkForEach: true,
|
|
25
25
|
allowVoid: true,
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
|
-
"constructor-super":
|
|
29
|
-
"for-direction":
|
|
28
|
+
"constructor-super": ON /* tsc */,
|
|
29
|
+
"for-direction": ON,
|
|
30
30
|
"getter-return": [
|
|
31
|
-
|
|
31
|
+
ON,
|
|
32
32
|
{
|
|
33
33
|
allowImplicit: false,
|
|
34
34
|
},
|
|
35
35
|
] /* tsc */,
|
|
36
|
-
"no-async-promise-executor":
|
|
37
|
-
"no-await-in-loop":
|
|
38
|
-
"no-class-assign":
|
|
39
|
-
"no-compare-neg-zero":
|
|
36
|
+
"no-async-promise-executor": ON,
|
|
37
|
+
"no-await-in-loop": ON,
|
|
38
|
+
"no-class-assign": ON,
|
|
39
|
+
"no-compare-neg-zero": ON,
|
|
40
40
|
"no-cond-assign": [
|
|
41
|
-
|
|
41
|
+
ON,
|
|
42
42
|
always,
|
|
43
43
|
],
|
|
44
|
-
"no-const-assign":
|
|
45
|
-
"no-constant-binary-expression":
|
|
44
|
+
"no-const-assign": ON /* tsc */,
|
|
45
|
+
"no-constant-binary-expression": ON,
|
|
46
46
|
"no-constant-condition": [
|
|
47
|
-
|
|
47
|
+
ON,
|
|
48
48
|
{
|
|
49
49
|
checkLoops: true,
|
|
50
50
|
},
|
|
51
51
|
] /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */,
|
|
52
|
-
"no-constructor-return":
|
|
53
|
-
"no-control-regex":
|
|
54
|
-
"no-debugger":
|
|
55
|
-
"no-dupe-args":
|
|
56
|
-
"no-dupe-class-members":
|
|
57
|
-
"no-dupe-else-if":
|
|
58
|
-
"no-dupe-keys":
|
|
59
|
-
"no-duplicate-case":
|
|
52
|
+
"no-constructor-return": ON,
|
|
53
|
+
"no-control-regex": ON,
|
|
54
|
+
"no-debugger": ON,
|
|
55
|
+
"no-dupe-args": ON /* tsc */,
|
|
56
|
+
"no-dupe-class-members": ON /* tsc -- TSLint:off: tsc */,
|
|
57
|
+
"no-dupe-else-if": ON,
|
|
58
|
+
"no-dupe-keys": ON /* tsc */,
|
|
59
|
+
"no-duplicate-case": ON,
|
|
60
60
|
"no-duplicate-imports": OFF /* BUG: breaks separation of TS type-only imports from value imports */,
|
|
61
|
-
"no-empty-character-class":
|
|
61
|
+
"no-empty-character-class": ON,
|
|
62
62
|
"no-empty-pattern": [
|
|
63
|
-
|
|
63
|
+
ON,
|
|
64
64
|
{
|
|
65
65
|
allowObjectPatternsAsParameters: false,
|
|
66
66
|
},
|
|
67
67
|
],
|
|
68
|
-
"no-ex-assign":
|
|
68
|
+
"no-ex-assign": ON,
|
|
69
69
|
"no-fallthrough": [
|
|
70
|
-
|
|
70
|
+
ON,
|
|
71
71
|
{
|
|
72
72
|
allowEmptyCase: true,
|
|
73
73
|
reportUnusedFallthroughComment: true,
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
|
-
"no-func-assign":
|
|
77
|
-
"no-import-assign":
|
|
76
|
+
"no-func-assign": ON /* tsc */,
|
|
77
|
+
"no-import-assign": ON /* tsc (except Object.assign()) */,
|
|
78
78
|
"no-inner-declarations": [
|
|
79
|
-
|
|
79
|
+
ON,
|
|
80
80
|
both,
|
|
81
81
|
{
|
|
82
82
|
blockScopedFunctions: allow,
|
|
83
83
|
},
|
|
84
84
|
],
|
|
85
85
|
"no-invalid-regexp": [
|
|
86
|
-
|
|
86
|
+
ON,
|
|
87
87
|
{
|
|
88
88
|
allowConstructorFlags: [],
|
|
89
89
|
},
|
|
90
90
|
],
|
|
91
91
|
"no-irregular-whitespace": [
|
|
92
|
-
|
|
92
|
+
ON,
|
|
93
93
|
{
|
|
94
94
|
skipStrings: true,
|
|
95
95
|
skipComments: true,
|
|
@@ -98,54 +98,54 @@ export const Enable = {
|
|
|
98
98
|
skipJSXText: true,
|
|
99
99
|
},
|
|
100
100
|
],
|
|
101
|
-
"no-loss-of-precision":
|
|
102
|
-
"no-misleading-character-class":
|
|
103
|
-
"no-new-native-nonconstructor":
|
|
104
|
-
"no-obj-calls":
|
|
101
|
+
"no-loss-of-precision": ON /* TSLint */,
|
|
102
|
+
"no-misleading-character-class": ON,
|
|
103
|
+
"no-new-native-nonconstructor": ON,
|
|
104
|
+
"no-obj-calls": ON /* tsc */,
|
|
105
105
|
"no-promise-executor-return": [
|
|
106
|
-
|
|
106
|
+
ON,
|
|
107
107
|
{
|
|
108
108
|
allowVoid: true,
|
|
109
109
|
},
|
|
110
110
|
],
|
|
111
|
-
"no-prototype-builtins":
|
|
111
|
+
"no-prototype-builtins": ON,
|
|
112
112
|
"no-self-assign": [
|
|
113
|
-
|
|
113
|
+
ON,
|
|
114
114
|
{
|
|
115
115
|
props: true,
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
|
-
"no-self-compare":
|
|
119
|
-
"no-setter-return":
|
|
120
|
-
"no-sparse-arrays":
|
|
121
|
-
"no-template-curly-in-string":
|
|
122
|
-
"no-this-before-super":
|
|
123
|
-
"no-undef":
|
|
124
|
-
"no-unexpected-multiline":
|
|
125
|
-
"no-unmodified-loop-condition":
|
|
126
|
-
"no-unreachable":
|
|
118
|
+
"no-self-compare": ON,
|
|
119
|
+
"no-setter-return": ON /* tsc */,
|
|
120
|
+
"no-sparse-arrays": ON,
|
|
121
|
+
"no-template-curly-in-string": ON,
|
|
122
|
+
"no-this-before-super": ON /* tsc */,
|
|
123
|
+
"no-undef": ON /* tsc */,
|
|
124
|
+
"no-unexpected-multiline": ON,
|
|
125
|
+
"no-unmodified-loop-condition": ON,
|
|
126
|
+
"no-unreachable": ON /* tsc */,
|
|
127
127
|
"no-unreachable-loop": [
|
|
128
|
-
|
|
128
|
+
ON,
|
|
129
129
|
{
|
|
130
130
|
ignore: [] /* WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement */,
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
|
-
"no-unsafe-finally":
|
|
133
|
+
"no-unsafe-finally": ON,
|
|
134
134
|
"no-unsafe-negation": [
|
|
135
|
-
|
|
135
|
+
ON,
|
|
136
136
|
{
|
|
137
137
|
enforceForOrderingRelations: true,
|
|
138
138
|
},
|
|
139
139
|
] /* tsc */,
|
|
140
140
|
"no-unsafe-optional-chaining": [
|
|
141
|
-
|
|
141
|
+
ON,
|
|
142
142
|
{
|
|
143
143
|
disallowArithmeticOperators: true,
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
|
-
"no-unused-private-class-members":
|
|
146
|
+
"no-unused-private-class-members": ON,
|
|
147
147
|
"no-unused-vars": [
|
|
148
|
-
|
|
148
|
+
ON,
|
|
149
149
|
{
|
|
150
150
|
vars: all,
|
|
151
151
|
args: all,
|
|
@@ -156,7 +156,7 @@ export const Enable = {
|
|
|
156
156
|
},
|
|
157
157
|
] /* TSLint */,
|
|
158
158
|
"no-use-before-define": [
|
|
159
|
-
|
|
159
|
+
ON,
|
|
160
160
|
{
|
|
161
161
|
functions: true,
|
|
162
162
|
classes: true,
|
|
@@ -164,23 +164,23 @@ export const Enable = {
|
|
|
164
164
|
allowNamedExports: false,
|
|
165
165
|
},
|
|
166
166
|
] /* TSLint */,
|
|
167
|
-
"no-useless-assignment":
|
|
168
|
-
"no-useless-backreference":
|
|
167
|
+
"no-useless-assignment": ON,
|
|
168
|
+
"no-useless-backreference": ON,
|
|
169
169
|
"require-atomic-updates": [
|
|
170
|
-
|
|
170
|
+
ON,
|
|
171
171
|
{
|
|
172
172
|
allowProperties: false,
|
|
173
173
|
},
|
|
174
174
|
],
|
|
175
175
|
"use-isnan": [
|
|
176
|
-
|
|
176
|
+
ON,
|
|
177
177
|
{
|
|
178
178
|
enforceForSwitchCase: true,
|
|
179
179
|
enforceForIndexOf: true,
|
|
180
180
|
},
|
|
181
181
|
],
|
|
182
182
|
"valid-typeof": [
|
|
183
|
-
|
|
183
|
+
ON,
|
|
184
184
|
{
|
|
185
185
|
requireStringLiterals: true,
|
|
186
186
|
},
|
|
@@ -191,7 +191,7 @@ export const Enable = {
|
|
|
191
191
|
// #region SUGGESTIONS
|
|
192
192
|
// [ https://eslint.org/docs/latest/rules/#suggestions ]
|
|
193
193
|
"accessor-pairs": [
|
|
194
|
-
|
|
194
|
+
ON,
|
|
195
195
|
{
|
|
196
196
|
setWithoutGet: true,
|
|
197
197
|
getWithoutSet: false,
|
|
@@ -199,39 +199,39 @@ export const Enable = {
|
|
|
199
199
|
},
|
|
200
200
|
],
|
|
201
201
|
"arrow-body-style": [
|
|
202
|
-
|
|
202
|
+
ON,
|
|
203
203
|
as_needed,
|
|
204
204
|
{
|
|
205
205
|
requireReturnForObjectLiteral: true,
|
|
206
206
|
},
|
|
207
207
|
],
|
|
208
|
-
"block-scoped-var":
|
|
208
|
+
"block-scoped-var": ON,
|
|
209
209
|
camelcase: OFF /* preference */,
|
|
210
210
|
"capitalized-comments": OFF /* preference */,
|
|
211
211
|
"class-methods-use-this": OFF /* preference -- TSLint */,
|
|
212
212
|
complexity: OFF /* preference */,
|
|
213
213
|
"consistent-return": [
|
|
214
|
-
|
|
214
|
+
ON,
|
|
215
215
|
{
|
|
216
216
|
treatUndefinedAsUnspecified: false,
|
|
217
217
|
},
|
|
218
218
|
] /* tsc -- TSLint:off: tsconfig: noImplicitReturns */,
|
|
219
|
-
"consistent-this":
|
|
219
|
+
"consistent-this": ON,
|
|
220
220
|
curly: [
|
|
221
|
-
|
|
221
|
+
ON,
|
|
222
222
|
multi,
|
|
223
223
|
],
|
|
224
224
|
"default-case": OFF /* preference: don't care */,
|
|
225
|
-
"default-case-last":
|
|
226
|
-
"default-param-last":
|
|
225
|
+
"default-case-last": ON,
|
|
226
|
+
"default-param-last": ON /* TSLint */,
|
|
227
227
|
"dot-notation": [
|
|
228
|
-
|
|
228
|
+
ON,
|
|
229
229
|
{
|
|
230
230
|
allowKeywords: true,
|
|
231
231
|
},
|
|
232
232
|
] /* TSLint */,
|
|
233
233
|
eqeqeq: [
|
|
234
|
-
|
|
234
|
+
ON,
|
|
235
235
|
always,
|
|
236
236
|
],
|
|
237
237
|
"func-name-matching": OFF /* preference */,
|
|
@@ -243,11 +243,11 @@ export const Enable = {
|
|
|
243
243
|
"id-length": OFF /* preference */,
|
|
244
244
|
"id-match": OFF /* preference */,
|
|
245
245
|
"init-declarations": [
|
|
246
|
-
|
|
246
|
+
ON,
|
|
247
247
|
always,
|
|
248
248
|
] /* TSLint */,
|
|
249
249
|
"logical-assignment-operators": [
|
|
250
|
-
|
|
250
|
+
ON,
|
|
251
251
|
always,
|
|
252
252
|
{
|
|
253
253
|
enforceForIfStatements: true,
|
|
@@ -262,65 +262,65 @@ export const Enable = {
|
|
|
262
262
|
"max-statements": OFF /* preference */,
|
|
263
263
|
"multiline-comment-style": OFF /* preference */,
|
|
264
264
|
"new-cap": OFF /* preference -- breaks Scriptable */,
|
|
265
|
-
"no-alert":
|
|
266
|
-
"no-array-constructor":
|
|
265
|
+
"no-alert": ON,
|
|
266
|
+
"no-array-constructor": ON /* TSLint */,
|
|
267
267
|
"no-bitwise": [
|
|
268
|
-
|
|
268
|
+
ON,
|
|
269
269
|
{
|
|
270
270
|
allow: [],
|
|
271
271
|
int32Hint: true,
|
|
272
272
|
},
|
|
273
273
|
],
|
|
274
|
-
"no-caller":
|
|
275
|
-
"no-case-declarations":
|
|
274
|
+
"no-caller": ON,
|
|
275
|
+
"no-case-declarations": ON,
|
|
276
276
|
"no-console": OFF /* preference -- breaks Node.js console applications and Scriptable, and otherwise unnecessarily hampers browser test code */,
|
|
277
|
-
"no-continue":
|
|
278
|
-
"no-delete-var":
|
|
279
|
-
"no-div-regex":
|
|
277
|
+
"no-continue": ON,
|
|
278
|
+
"no-delete-var": ON,
|
|
279
|
+
"no-div-regex": ON,
|
|
280
280
|
"no-else-return": OFF /* preference */,
|
|
281
281
|
"no-empty": [
|
|
282
|
-
|
|
282
|
+
ON,
|
|
283
283
|
{
|
|
284
284
|
allowEmptyCatch: false,
|
|
285
285
|
},
|
|
286
286
|
],
|
|
287
287
|
"no-empty-function": [
|
|
288
|
-
|
|
288
|
+
ON,
|
|
289
289
|
{
|
|
290
290
|
allow:
|
|
291
291
|
["constructors"] /** functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */,
|
|
292
292
|
},
|
|
293
293
|
] /* TSLint */,
|
|
294
|
-
"no-empty-static-block":
|
|
295
|
-
"no-eq-null":
|
|
294
|
+
"no-empty-static-block": ON,
|
|
295
|
+
"no-eq-null": ON,
|
|
296
296
|
"no-eval": [
|
|
297
|
-
|
|
297
|
+
ON,
|
|
298
298
|
{
|
|
299
299
|
allowIndirect: false,
|
|
300
300
|
},
|
|
301
301
|
],
|
|
302
302
|
"no-extend-native": [
|
|
303
|
-
|
|
303
|
+
ON,
|
|
304
304
|
{
|
|
305
305
|
exceptions: [],
|
|
306
306
|
},
|
|
307
307
|
],
|
|
308
|
-
"no-extra-bind":
|
|
308
|
+
"no-extra-bind": ON,
|
|
309
309
|
"no-extra-boolean-cast": [
|
|
310
|
-
|
|
310
|
+
ON,
|
|
311
311
|
{
|
|
312
312
|
enforceForLogicalOperands: true,
|
|
313
313
|
},
|
|
314
314
|
],
|
|
315
|
-
"no-extra-label":
|
|
315
|
+
"no-extra-label": ON,
|
|
316
316
|
"no-global-assign": [
|
|
317
|
-
|
|
317
|
+
ON,
|
|
318
318
|
{
|
|
319
319
|
exceptions: [],
|
|
320
320
|
},
|
|
321
321
|
],
|
|
322
322
|
"no-implicit-coercion": [
|
|
323
|
-
|
|
323
|
+
ON,
|
|
324
324
|
{
|
|
325
325
|
"boolean": true,
|
|
326
326
|
number: true,
|
|
@@ -330,36 +330,36 @@ export const Enable = {
|
|
|
330
330
|
},
|
|
331
331
|
],
|
|
332
332
|
"no-implicit-globals": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
|
|
333
|
-
"no-implied-eval":
|
|
333
|
+
"no-implied-eval": ON /* TSLint */,
|
|
334
334
|
"no-inline-comments": OFF /* preference */,
|
|
335
335
|
"no-invalid-this": [
|
|
336
|
-
|
|
336
|
+
ON,
|
|
337
337
|
{ capIsConstructor: false },
|
|
338
338
|
] /* TSLint:off: tsconfig: { strict, noImplicitThis } */,
|
|
339
|
-
"no-iterator":
|
|
340
|
-
"no-label-var":
|
|
341
|
-
"no-lone-blocks":
|
|
339
|
+
"no-iterator": ON,
|
|
340
|
+
"no-label-var": ON,
|
|
341
|
+
"no-lone-blocks": ON,
|
|
342
342
|
"no-lonely-if": OFF /* preference */,
|
|
343
|
-
"no-loop-func":
|
|
343
|
+
"no-loop-func": ON /* TSLint */,
|
|
344
344
|
"no-magic-numbers": OFF /* preference - breaks TypeScript number literals, even with most liberal exceptions */,
|
|
345
345
|
"no-multi-assign": [
|
|
346
|
-
|
|
346
|
+
ON,
|
|
347
347
|
{
|
|
348
348
|
ignoreNonDeclaration: false,
|
|
349
349
|
},
|
|
350
350
|
],
|
|
351
|
-
"no-multi-str":
|
|
351
|
+
"no-multi-str": ON,
|
|
352
352
|
"no-negated-condition": OFF /* preference */,
|
|
353
353
|
"no-nested-ternary": OFF /* preference */,
|
|
354
|
-
"no-new":
|
|
355
|
-
"no-new-func":
|
|
356
|
-
"no-new-wrappers":
|
|
357
|
-
"no-nonoctal-decimal-escape":
|
|
358
|
-
"no-object-constructor":
|
|
359
|
-
"no-octal":
|
|
360
|
-
"no-octal-escape":
|
|
354
|
+
"no-new": ON,
|
|
355
|
+
"no-new-func": ON,
|
|
356
|
+
"no-new-wrappers": ON,
|
|
357
|
+
"no-nonoctal-decimal-escape": ON,
|
|
358
|
+
"no-object-constructor": ON,
|
|
359
|
+
"no-octal": ON,
|
|
360
|
+
"no-octal-escape": ON,
|
|
361
361
|
"no-param-reassign": [
|
|
362
|
-
|
|
362
|
+
ON,
|
|
363
363
|
{
|
|
364
364
|
props: true,
|
|
365
365
|
ignorePropertyModificationsFor: [],
|
|
@@ -367,14 +367,14 @@ export const Enable = {
|
|
|
367
367
|
},
|
|
368
368
|
],
|
|
369
369
|
"no-plusplus": [
|
|
370
|
-
|
|
370
|
+
ON,
|
|
371
371
|
{
|
|
372
372
|
allowForLoopAfterthoughts: true,
|
|
373
373
|
},
|
|
374
374
|
],
|
|
375
|
-
"no-proto":
|
|
375
|
+
"no-proto": ON,
|
|
376
376
|
"no-redeclare": [
|
|
377
|
-
|
|
377
|
+
ON,
|
|
378
378
|
{ builtinGlobals: true },
|
|
379
379
|
] /* tsc -- TSLint:off: tsc (let, const, -var) */,
|
|
380
380
|
"no-regex-spaces": OFF /* preference */,
|
|
@@ -384,28 +384,28 @@ export const Enable = {
|
|
|
384
384
|
"no-restricted-properties": OFF /* preference */,
|
|
385
385
|
"no-restricted-syntax": OFF /* preference */,
|
|
386
386
|
"no-return-assign": OFF /* "always" | "except-parens" (disallow assignments unless enclosed in parens) */,
|
|
387
|
-
"no-script-url":
|
|
387
|
+
"no-script-url": ON,
|
|
388
388
|
"no-sequences": [
|
|
389
|
-
|
|
389
|
+
ON,
|
|
390
390
|
{
|
|
391
391
|
allowInParentheses: true,
|
|
392
392
|
},
|
|
393
393
|
],
|
|
394
394
|
"no-shadow": OFF /* investigate -- TSLint:off: investigate */,
|
|
395
|
-
"no-shadow-restricted-names":
|
|
395
|
+
"no-shadow-restricted-names": ON,
|
|
396
396
|
"no-ternary": OFF /* preference */,
|
|
397
|
-
"no-throw-literal":
|
|
398
|
-
"no-undef-init":
|
|
397
|
+
"no-throw-literal": ON /* TSLint */,
|
|
398
|
+
"no-undef-init": ON,
|
|
399
399
|
"no-undefined": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
|
|
400
400
|
"no-underscore-dangle": OFF /* preference */,
|
|
401
401
|
"no-unneeded-ternary": [
|
|
402
|
-
|
|
402
|
+
ON,
|
|
403
403
|
{
|
|
404
404
|
defaultAssignment: false,
|
|
405
405
|
},
|
|
406
406
|
],
|
|
407
407
|
"no-unused-expressions": [
|
|
408
|
-
|
|
408
|
+
ON,
|
|
409
409
|
{
|
|
410
410
|
allowShortCircuit: true,
|
|
411
411
|
allowTernary: true,
|
|
@@ -413,39 +413,39 @@ export const Enable = {
|
|
|
413
413
|
enforceForJSX: false,
|
|
414
414
|
},
|
|
415
415
|
] /* TSLint */,
|
|
416
|
-
"no-unused-labels":
|
|
417
|
-
"no-useless-call":
|
|
418
|
-
"no-useless-catch":
|
|
416
|
+
"no-unused-labels": ON,
|
|
417
|
+
"no-useless-call": ON,
|
|
418
|
+
"no-useless-catch": ON,
|
|
419
419
|
"no-useless-computed-key": [
|
|
420
|
-
|
|
420
|
+
ON,
|
|
421
421
|
{
|
|
422
422
|
enforceForClassMembers: true,
|
|
423
423
|
},
|
|
424
424
|
],
|
|
425
|
-
"no-useless-concat":
|
|
426
|
-
"no-useless-constructor":
|
|
427
|
-
"no-useless-escape":
|
|
425
|
+
"no-useless-concat": ON,
|
|
426
|
+
"no-useless-constructor": ON /* TSLint */,
|
|
427
|
+
"no-useless-escape": ON,
|
|
428
428
|
"no-useless-rename": [
|
|
429
|
-
|
|
429
|
+
ON,
|
|
430
430
|
{
|
|
431
431
|
ignoreImport: false,
|
|
432
432
|
ignoreExport: false,
|
|
433
433
|
ignoreDestructuring: false,
|
|
434
434
|
},
|
|
435
435
|
],
|
|
436
|
-
"no-useless-return":
|
|
437
|
-
"no-var":
|
|
436
|
+
"no-useless-return": ON,
|
|
437
|
+
"no-var": ON,
|
|
438
438
|
"no-void": [
|
|
439
|
-
|
|
439
|
+
ON,
|
|
440
440
|
{
|
|
441
441
|
allowAsStatement: true,
|
|
442
442
|
|
|
443
443
|
},
|
|
444
444
|
],
|
|
445
445
|
"no-warning-comments": OFF /* preference */,
|
|
446
|
-
"no-with":
|
|
446
|
+
"no-with": ON,
|
|
447
447
|
"object-shorthand": [
|
|
448
|
-
|
|
448
|
+
ON,
|
|
449
449
|
always,
|
|
450
450
|
{
|
|
451
451
|
avoidQuotes: true,
|
|
@@ -454,7 +454,7 @@ export const Enable = {
|
|
|
454
454
|
},
|
|
455
455
|
],
|
|
456
456
|
"one-var": [
|
|
457
|
-
|
|
457
|
+
ON,
|
|
458
458
|
{
|
|
459
459
|
"var": consecutive,
|
|
460
460
|
let: consecutive,
|
|
@@ -463,25 +463,25 @@ export const Enable = {
|
|
|
463
463
|
},
|
|
464
464
|
],
|
|
465
465
|
"operator-assignment": [
|
|
466
|
-
|
|
466
|
+
ON,
|
|
467
467
|
always,
|
|
468
468
|
],
|
|
469
469
|
"prefer-arrow-callback": [
|
|
470
|
-
|
|
470
|
+
ON,
|
|
471
471
|
{
|
|
472
472
|
allowNamedFunctions: false,
|
|
473
473
|
allowUnboundThis: true,
|
|
474
474
|
},
|
|
475
475
|
],
|
|
476
476
|
"prefer-const": [
|
|
477
|
-
|
|
477
|
+
ON,
|
|
478
478
|
{
|
|
479
479
|
destructuring: all,
|
|
480
480
|
ignoreReadBeforeAssign: false,
|
|
481
481
|
},
|
|
482
482
|
],
|
|
483
483
|
"prefer-destructuring": [
|
|
484
|
-
|
|
484
|
+
ON,
|
|
485
485
|
{
|
|
486
486
|
VariableDeclarator: {
|
|
487
487
|
array: true,
|
|
@@ -494,41 +494,41 @@ export const Enable = {
|
|
|
494
494
|
},
|
|
495
495
|
{ enforceForRenamedProperties: true },
|
|
496
496
|
] /* TSLint */,
|
|
497
|
-
"prefer-exponentiation-operator":
|
|
497
|
+
"prefer-exponentiation-operator": ON,
|
|
498
498
|
"prefer-named-capture-group": OFF,
|
|
499
|
-
"prefer-numeric-literals":
|
|
500
|
-
"prefer-object-has-own":
|
|
501
|
-
"prefer-object-spread":
|
|
499
|
+
"prefer-numeric-literals": ON,
|
|
500
|
+
"prefer-object-has-own": ON,
|
|
501
|
+
"prefer-object-spread": ON,
|
|
502
502
|
"prefer-promise-reject-errors": [
|
|
503
|
-
|
|
503
|
+
ON,
|
|
504
504
|
{
|
|
505
505
|
allowEmptyReject: false,
|
|
506
506
|
},
|
|
507
507
|
],
|
|
508
508
|
"prefer-regex-literals": [
|
|
509
|
-
|
|
509
|
+
ON,
|
|
510
510
|
{
|
|
511
511
|
disallowRedundantWrapping: true,
|
|
512
512
|
},
|
|
513
513
|
] /* TSLint */,
|
|
514
|
-
"prefer-rest-params":
|
|
515
|
-
"prefer-spread":
|
|
516
|
-
"prefer-template":
|
|
514
|
+
"prefer-rest-params": ON,
|
|
515
|
+
"prefer-spread": ON,
|
|
516
|
+
"prefer-template": ON,
|
|
517
517
|
radix: [
|
|
518
|
-
|
|
518
|
+
ON,
|
|
519
519
|
as_needed,
|
|
520
520
|
],
|
|
521
|
-
"require-await":
|
|
522
|
-
"require-unicode-regexp":
|
|
523
|
-
"require-yield":
|
|
521
|
+
"require-await": ON /* TSLint */,
|
|
522
|
+
"require-unicode-regexp": ON,
|
|
523
|
+
"require-yield": ON,
|
|
524
524
|
"sort-imports": OFF /* preference */,
|
|
525
525
|
"sort-keys": OFF /* preference */,
|
|
526
526
|
"sort-vars": OFF /* preference */,
|
|
527
527
|
strict: OFF /* preference */,
|
|
528
528
|
"symbol-description": OFF /* preference */,
|
|
529
|
-
"vars-on-top":
|
|
529
|
+
"vars-on-top": ON,
|
|
530
530
|
yoda: [
|
|
531
|
-
|
|
531
|
+
ON,
|
|
532
532
|
never,
|
|
533
533
|
{
|
|
534
534
|
exceptRange: false,
|