linted 16.1.0-rc.1 → 16.1.1-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/imports/index.d.ts +1 -1
- package/dist/imports/index.d.ts.map +1 -1
- package/dist/imports/index.js +1 -1
- package/dist/imports/index.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/statics/index.d.ts +1 -1
- package/dist/statics/index.d.ts.map +1 -1
- package/dist/statics/index.js +1 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/statics/rules/index.d.ts +23 -23
- package/dist/statics/rules/presets/Html.d.ts.map +1 -1
- package/dist/statics/rules/presets/Html.js +1 -4
- package/dist/statics/rules/presets/Html.js.map +1 -1
- package/dist/statics/rules/presets/Js.d.ts +4 -4
- package/dist/statics/rules/presets/Js.d.ts.map +1 -1
- package/dist/statics/rules/presets/Js.js +1 -4
- package/dist/statics/rules/presets/Js.js.map +1 -1
- package/dist/statics/rules/presets/Json.d.ts +1 -1
- package/dist/statics/rules/presets/Json.d.ts.map +1 -1
- package/dist/statics/rules/presets/Json.js +1 -4
- package/dist/statics/rules/presets/Json.js.map +1 -1
- package/dist/statics/rules/presets/Jsonc.d.ts +1 -1
- package/dist/statics/rules/presets/Jsonc.d.ts.map +1 -1
- package/dist/statics/rules/presets/Jsonc.js +1 -4
- package/dist/statics/rules/presets/Jsonc.js.map +1 -1
- package/dist/statics/rules/presets/Mocha.d.ts.map +1 -1
- package/dist/statics/rules/presets/Mocha.js +1 -4
- package/dist/statics/rules/presets/Mocha.js.map +1 -1
- package/dist/statics/rules/presets/Svelte.d.ts +8 -8
- package/dist/statics/rules/presets/Ts.d.ts +8 -8
- package/dist/statics/rules/presets/Yml.d.ts +1 -1
- package/dist/statics/rules/presets/Yml.d.ts.map +1 -1
- package/dist/statics/rules/presets/Yml.js +1 -4
- package/dist/statics/rules/presets/Yml.js.map +1 -1
- package/dist/statics/rules/presets/html/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/html/Enable.js +1 -4
- package/dist/statics/rules/presets/html/Enable.js.map +1 -1
- package/dist/statics/rules/presets/html/Recommended.d.ts.map +1 -1
- package/dist/statics/rules/presets/html/Recommended.js +1 -4
- package/dist/statics/rules/presets/html/Recommended.js.map +1 -1
- package/dist/statics/rules/presets/index.d.ts +1 -1
- package/dist/statics/rules/presets/index.d.ts.map +1 -1
- package/dist/statics/rules/presets/index.js.map +1 -1
- package/dist/statics/rules/presets/js/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/js/Enable.js +51 -254
- package/dist/statics/rules/presets/js/Enable.js.map +1 -1
- package/dist/statics/rules/presets/js/EnableStylistic.d.ts +4 -4
- package/dist/statics/rules/presets/js/EnableStylistic.d.ts.map +1 -1
- package/dist/statics/rules/presets/js/EnableStylistic.js +85 -486
- package/dist/statics/rules/presets/js/EnableStylistic.js.map +1 -1
- package/dist/statics/rules/presets/json/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/json/Enable.js.map +1 -1
- package/dist/statics/rules/presets/json/EnableX.d.ts +1 -1
- package/dist/statics/rules/presets/json/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/json/EnableX.js +12 -66
- package/dist/statics/rules/presets/json/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/jsonc/OverrideJson.d.ts.map +1 -1
- package/dist/statics/rules/presets/jsonc/OverrideJson.js +2 -11
- package/dist/statics/rules/presets/jsonc/OverrideJson.js.map +1 -1
- package/dist/statics/rules/presets/md/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/md/Enable.js +11 -49
- package/dist/statics/rules/presets/md/Enable.js.map +1 -1
- package/dist/statics/rules/presets/mocha/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/mocha/Enable.js +1 -4
- package/dist/statics/rules/presets/mocha/Enable.js.map +1 -1
- package/dist/statics/rules/presets/mocha/Recommended.d.ts.map +1 -1
- package/dist/statics/rules/presets/mocha/Recommended.js +1 -4
- package/dist/statics/rules/presets/mocha/Recommended.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableJS.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableJS.js +1 -7
- package/dist/statics/rules/presets/svelte/DisableJS.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableTS.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableTS.js +1 -7
- package/dist/statics/rules/presets/svelte/DisableTS.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableX.js +1 -6
- package/dist/statics/rules/presets/svelte/DisableX.js.map +1 -1
- package/dist/statics/rules/presets/svelte/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/Enable.js +19 -108
- package/dist/statics/rules/presets/svelte/Enable.js.map +1 -1
- package/dist/statics/rules/presets/svelte/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/EnableX.js +2 -12
- package/dist/statics/rules/presets/svelte/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/ts/DisableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/DisableX.js.map +1 -1
- package/dist/statics/rules/presets/ts/Enable.d.ts +4 -4
- package/dist/statics/rules/presets/ts/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/Enable.js +38 -175
- package/dist/statics/rules/presets/ts/Enable.js.map +1 -1
- package/dist/statics/rules/presets/ts/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/EnableX.js +4 -29
- package/dist/statics/rules/presets/ts/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/yml/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/yml/Enable.js +9 -50
- package/dist/statics/rules/presets/yml/Enable.js.map +1 -1
- package/dist/statics/rules/presets/yml/EnableX.d.ts +1 -1
- package/dist/statics/rules/presets/yml/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/yml/EnableX.js +9 -60
- package/dist/statics/rules/presets/yml/EnableX.js.map +1 -1
- package/dist/statics/rules/strings/level/index.d.ts +1 -1
- package/dist/statics/rules/strings/level/index.d.ts.map +1 -1
- package/dist/statics/rules/strings/level/index.js +1 -1
- package/dist/statics/rules/strings/level/index.js.map +1 -1
- package/dist/statics/rules/strings/state/index.d.ts +2 -2
- package/dist/statics/rules/strings/state/index.d.ts.map +1 -1
- package/dist/statics/rules/strings/state/index.js +2 -2
- package/dist/statics/rules/strings/state/index.js.map +1 -1
- package/package.json +3 -2
- package/src/imports/index.ts +1 -4
- package/src/index.ts +18 -7
- package/src/statics/index.ts +1 -4
- package/src/statics/rules/presets/Html.ts +1 -4
- package/src/statics/rules/presets/Js.ts +1 -4
- package/src/statics/rules/presets/Json.ts +1 -4
- package/src/statics/rules/presets/Jsonc.ts +1 -4
- package/src/statics/rules/presets/Mocha.ts +1 -4
- package/src/statics/rules/presets/Yml.ts +1 -4
- package/src/statics/rules/presets/html/Enable.ts +1 -4
- package/src/statics/rules/presets/html/Recommended.ts +2 -4
- package/src/statics/rules/presets/index.ts +1 -4
- package/src/statics/rules/presets/js/Enable.ts +53 -257
- package/src/statics/rules/presets/js/EnableStylistic.ts +86 -490
- package/src/statics/rules/presets/json/Enable.ts +0 -1
- package/src/statics/rules/presets/json/EnableX.ts +12 -67
- package/src/statics/rules/presets/jsonc/OverrideJson.ts +3 -19
- package/src/statics/rules/presets/md/Enable.ts +11 -50
- package/src/statics/rules/presets/mocha/Enable.ts +1 -4
- package/src/statics/rules/presets/mocha/Recommended.ts +2 -4
- package/src/statics/rules/presets/svelte/DisableJS.ts +3 -10
- package/src/statics/rules/presets/svelte/DisableTS.ts +1 -7
- package/src/statics/rules/presets/svelte/DisableX.ts +2 -11
- package/src/statics/rules/presets/svelte/Enable.ts +50 -137
- package/src/statics/rules/presets/svelte/EnableX.ts +3 -21
- package/src/statics/rules/presets/ts/DisableX.ts +1 -2
- package/src/statics/rules/presets/ts/Enable.ts +39 -191
- package/src/statics/rules/presets/ts/EnableX.ts +9 -41
- package/src/statics/rules/presets/yml/Enable.ts +9 -59
- package/src/statics/rules/presets/yml/EnableX.ts +9 -69
- package/src/statics/rules/strings/level/index.ts +1 -5
- package/src/statics/rules/strings/state/index.ts +2 -0
@@ -18,37 +18,20 @@ const {
|
|
18
18
|
export default [
|
19
19
|
Enable,
|
20
20
|
{
|
21
|
-
|
22
21
|
// #region Problems
|
23
22
|
// [ https://eslint.org/docs/latest/rules/#possible-problems ]
|
24
|
-
"array-callback-return": [
|
25
|
-
ERROR,
|
26
|
-
{
|
27
|
-
allowImplicit: false,
|
28
|
-
checkForEach: true,
|
29
|
-
allowVoid: true,
|
30
|
-
},
|
31
|
-
],
|
23
|
+
"array-callback-return": [ERROR, { allowImplicit: false, checkForEach: true, allowVoid: true }],
|
32
24
|
"constructor-super": ERROR, /* tsc */
|
33
25
|
"for-direction": ERROR,
|
34
|
-
"getter-return": [
|
35
|
-
ERROR,
|
36
|
-
{ allowImplicit: false },
|
37
|
-
], /* tsc */
|
26
|
+
"getter-return": [ERROR, { allowImplicit: false }], /* tsc */
|
38
27
|
"no-async-promise-executor": ERROR,
|
39
28
|
"no-await-in-loop": ERROR,
|
40
29
|
"no-class-assign": ERROR,
|
41
30
|
"no-compare-neg-zero": ERROR,
|
42
|
-
"no-cond-assign": [
|
43
|
-
ERROR,
|
44
|
-
ALWAYS,
|
45
|
-
],
|
31
|
+
"no-cond-assign": [ERROR, ALWAYS],
|
46
32
|
"no-const-assign": ERROR, /* tsc */
|
47
33
|
"no-constant-binary-expression": ERROR,
|
48
|
-
"no-constant-condition": [
|
49
|
-
ERROR,
|
50
|
-
{ checkLoops: true }, /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */
|
51
|
-
],
|
34
|
+
"no-constant-condition": [ERROR, { checkLoops: true }], /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */
|
52
35
|
"no-constructor-return": ERROR,
|
53
36
|
"no-control-regex": ERROR,
|
54
37
|
"no-debugger": ERROR,
|
@@ -59,29 +42,13 @@ export default [
|
|
59
42
|
"no-duplicate-case": ERROR,
|
60
43
|
"no-duplicate-imports": OFF, /* BUG: breaks separation of TS type-only imports from value imports */
|
61
44
|
"no-empty-character-class": ERROR,
|
62
|
-
"no-empty-pattern": [
|
63
|
-
ERROR,
|
64
|
-
{ allowObjectPatternsAsParameters: false },
|
65
|
-
],
|
45
|
+
"no-empty-pattern": [ERROR, { allowObjectPatternsAsParameters: false }],
|
66
46
|
"no-ex-assign": ERROR,
|
67
|
-
"no-fallthrough": [
|
68
|
-
ERROR,
|
69
|
-
{
|
70
|
-
allowEmptyCase: true,
|
71
|
-
reportUnusedFallthroughComment: true,
|
72
|
-
},
|
73
|
-
],
|
47
|
+
"no-fallthrough": [ERROR, { allowEmptyCase: true, reportUnusedFallthroughComment: true }],
|
74
48
|
"no-func-assign": ERROR, /* tsc */
|
75
49
|
"no-import-assign": ERROR, /* tsc (except Object.assign()) */
|
76
|
-
"no-inner-declarations": [
|
77
|
-
|
78
|
-
BOTH,
|
79
|
-
{ blockScopedFunctions: ALLOW },
|
80
|
-
],
|
81
|
-
"no-invalid-regexp": [
|
82
|
-
ERROR,
|
83
|
-
{ allowConstructorFlags: [] },
|
84
|
-
],
|
50
|
+
"no-inner-declarations": [ERROR, BOTH, { blockScopedFunctions: ALLOW }],
|
51
|
+
"no-invalid-regexp": [ERROR, { allowConstructorFlags: [] }],
|
85
52
|
"no-irregular-whitespace": [
|
86
53
|
ERROR,
|
87
54
|
{
|
@@ -96,15 +63,9 @@ export default [
|
|
96
63
|
"no-misleading-character-class": ERROR,
|
97
64
|
"no-new-native-nonconstructor": ERROR,
|
98
65
|
"no-obj-calls": ERROR, /* tsc */
|
99
|
-
"no-promise-executor-return": [
|
100
|
-
ERROR,
|
101
|
-
{ allowVoid: true },
|
102
|
-
],
|
66
|
+
"no-promise-executor-return": [ERROR, { allowVoid: true }],
|
103
67
|
"no-prototype-builtins": ERROR,
|
104
|
-
"no-self-assign": [
|
105
|
-
ERROR,
|
106
|
-
{ props: true },
|
107
|
-
],
|
68
|
+
"no-self-assign": [ERROR, { props: true }],
|
108
69
|
"no-self-compare": ERROR,
|
109
70
|
"no-setter-return": ERROR, /* tsc */
|
110
71
|
"no-sparse-arrays": ERROR,
|
@@ -114,19 +75,10 @@ export default [
|
|
114
75
|
"no-unexpected-multiline": ERROR,
|
115
76
|
"no-unmodified-loop-condition": ERROR,
|
116
77
|
"no-unreachable": ERROR, /* tsc */
|
117
|
-
"no-unreachable-loop": [
|
118
|
-
ERROR,
|
119
|
-
{ ignore: [] }, /* WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement */
|
120
|
-
],
|
78
|
+
"no-unreachable-loop": [ERROR, { ignore: [] /* WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement */ }],
|
121
79
|
"no-unsafe-finally": ERROR,
|
122
|
-
"no-unsafe-negation": [
|
123
|
-
|
124
|
-
{ enforceForOrderingRelations: true },
|
125
|
-
], /* tsc */
|
126
|
-
"no-unsafe-optional-chaining": [
|
127
|
-
ERROR,
|
128
|
-
{ disallowArithmeticOperators: true },
|
129
|
-
],
|
80
|
+
"no-unsafe-negation": [ERROR, { enforceForOrderingRelations: true }], /* tsc */
|
81
|
+
"no-unsafe-optional-chaining": [ERROR, { disallowArithmeticOperators: true }],
|
130
82
|
"no-unused-private-class-members": ERROR,
|
131
83
|
"no-unused-vars": [
|
132
84
|
ERROR,
|
@@ -150,64 +102,29 @@ export default [
|
|
150
102
|
], /* TSLint */
|
151
103
|
"no-useless-assignment": ERROR,
|
152
104
|
"no-useless-backreference": ERROR,
|
153
|
-
"require-atomic-updates": [
|
154
|
-
|
155
|
-
|
156
|
-
],
|
157
|
-
"use-isnan": [
|
158
|
-
ERROR,
|
159
|
-
{
|
160
|
-
enforceForSwitchCase: true,
|
161
|
-
enforceForIndexOf: true,
|
162
|
-
},
|
163
|
-
],
|
164
|
-
"valid-typeof": [
|
165
|
-
ERROR,
|
166
|
-
{ requireStringLiterals: true },
|
167
|
-
],
|
105
|
+
"require-atomic-updates": [ERROR, { allowProperties: false }],
|
106
|
+
"use-isnan": [ERROR, { enforceForSwitchCase: true, enforceForIndexOf: true }],
|
107
|
+
"valid-typeof": [ERROR, { requireStringLiterals: true }],
|
168
108
|
|
169
109
|
// #endregion
|
170
110
|
|
171
|
-
// #
|
111
|
+
// #region Suggestions
|
172
112
|
// [ https://eslint.org/docs/latest/rules/#suggestions ]
|
173
|
-
"accessor-pairs": [
|
174
|
-
|
175
|
-
{
|
176
|
-
setWithoutGet: true,
|
177
|
-
getWithoutSet: false,
|
178
|
-
enforceForClassMembers: true,
|
179
|
-
},
|
180
|
-
],
|
181
|
-
"arrow-body-style": [
|
182
|
-
ERROR,
|
183
|
-
AS_NEEDED,
|
184
|
-
{ requireReturnForObjectLiteral: true },
|
185
|
-
],
|
113
|
+
"accessor-pairs": [ERROR, { setWithoutGet: true, getWithoutSet: false, enforceForClassMembers: true }],
|
114
|
+
"arrow-body-style": [ERROR, AS_NEEDED, { requireReturnForObjectLiteral: true }],
|
186
115
|
"block-scoped-var": ERROR,
|
187
116
|
camelcase: OFF, /* preference */
|
188
117
|
"capitalized-comments": OFF, /* preference */
|
189
118
|
"class-methods-use-this": OFF, /* preference -- TSLint */
|
190
119
|
complexity: OFF, /* preference */
|
191
|
-
"consistent-return": [
|
192
|
-
ERROR,
|
193
|
-
{ treatUndefinedAsUnspecified: false },
|
194
|
-
], /* tsc -- TSLint:off: tsconfig: noImplicitReturns */
|
120
|
+
"consistent-return": [ERROR, { treatUndefinedAsUnspecified: false }], /* tsc -- TSLint:off: tsconfig: noImplicitReturns */
|
195
121
|
"consistent-this": ERROR,
|
196
|
-
curly: [
|
197
|
-
ERROR,
|
198
|
-
MULTI,
|
199
|
-
],
|
122
|
+
curly: [ERROR, MULTI],
|
200
123
|
"default-case": OFF, /* preference: don't care */
|
201
124
|
"default-case-last": ERROR,
|
202
125
|
"default-param-last": ERROR, /* TSLint */
|
203
|
-
"dot-notation": [
|
204
|
-
|
205
|
-
{ allowKeywords: true },
|
206
|
-
], /* TSLint */
|
207
|
-
eqeqeq: [
|
208
|
-
ERROR,
|
209
|
-
ALWAYS,
|
210
|
-
],
|
126
|
+
"dot-notation": [ERROR, { allowKeywords: true }], /* TSLint */
|
127
|
+
eqeqeq: [ERROR, ALWAYS],
|
211
128
|
"func-name-matching": OFF, /* preference */
|
212
129
|
"func-names": OFF, /* preference */
|
213
130
|
"func-style": OFF, /* preference */
|
@@ -216,15 +133,8 @@ export default [
|
|
216
133
|
"id-denylist": OFF, /* preference */
|
217
134
|
"id-length": OFF, /* preference */
|
218
135
|
"id-match": OFF, /* preference */
|
219
|
-
"init-declarations": [
|
220
|
-
|
221
|
-
ALWAYS,
|
222
|
-
], /* TSLint */
|
223
|
-
"logical-assignment-operators": [
|
224
|
-
ERROR,
|
225
|
-
ALWAYS,
|
226
|
-
{ enforceForIfStatements: true },
|
227
|
-
],
|
136
|
+
"init-declarations": [ERROR, ALWAYS], /* TSLint */
|
137
|
+
"logical-assignment-operators": [ERROR, ALWAYS, { enforceForIfStatements: true }],
|
228
138
|
"max-classes-per-file": OFF, /* preference */
|
229
139
|
"max-depth": OFF, /* preference */
|
230
140
|
"max-lines": OFF, /* preference */
|
@@ -236,13 +146,7 @@ export default [
|
|
236
146
|
"new-cap": OFF, /* preference -- breaks Scriptable */
|
237
147
|
"no-alert": ERROR,
|
238
148
|
"no-array-constructor": ERROR, /* TSLint */
|
239
|
-
"no-bitwise": [
|
240
|
-
ERROR,
|
241
|
-
{
|
242
|
-
allow: [],
|
243
|
-
int32Hint: true,
|
244
|
-
},
|
245
|
-
],
|
149
|
+
"no-bitwise": [ERROR, { allow: [], int32Hint: true }],
|
246
150
|
"no-caller": ERROR,
|
247
151
|
"no-case-declarations": ERROR,
|
248
152
|
"no-console": OFF, /* preference -- breaks Node.js console applications and Scriptable, and otherwise unnecessarily hampers browser test code */
|
@@ -250,34 +154,16 @@ export default [
|
|
250
154
|
"no-delete-var": ERROR,
|
251
155
|
"no-div-regex": ERROR,
|
252
156
|
"no-else-return": OFF, /* preference */
|
253
|
-
"no-empty": [
|
254
|
-
|
255
|
-
{ allowEmptyCatch: false },
|
256
|
-
],
|
257
|
-
"no-empty-function": [
|
258
|
-
ERROR,
|
259
|
-
{ allow: ["constructors"] }, /** functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */
|
260
|
-
], /* TSLint */
|
157
|
+
"no-empty": [ERROR, { allowEmptyCatch: false }],
|
158
|
+
"no-empty-function": [ERROR, { allow: ["constructors"] /** functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */ }], /* TSLint */
|
261
159
|
"no-empty-static-block": ERROR,
|
262
160
|
"no-eq-null": ERROR,
|
263
|
-
"no-eval": [
|
264
|
-
|
265
|
-
{ allowIndirect: false },
|
266
|
-
],
|
267
|
-
"no-extend-native": [
|
268
|
-
ERROR,
|
269
|
-
{ exceptions: [] },
|
270
|
-
],
|
161
|
+
"no-eval": [ERROR, { allowIndirect: false }],
|
162
|
+
"no-extend-native": [ERROR, { exceptions: [] }],
|
271
163
|
"no-extra-bind": ERROR,
|
272
|
-
"no-extra-boolean-cast": [
|
273
|
-
ERROR,
|
274
|
-
{ enforceForLogicalOperands: true },
|
275
|
-
],
|
164
|
+
"no-extra-boolean-cast": [ERROR, { enforceForLogicalOperands: true }],
|
276
165
|
"no-extra-label": ERROR,
|
277
|
-
"no-global-assign": [
|
278
|
-
ERROR,
|
279
|
-
{ exceptions: [] },
|
280
|
-
],
|
166
|
+
"no-global-assign": [ERROR, { exceptions: [] }],
|
281
167
|
"no-implicit-coercion": [
|
282
168
|
ERROR,
|
283
169
|
{
|
@@ -291,20 +177,14 @@ export default [
|
|
291
177
|
"no-implicit-globals": OFF, /* investigate (breaks Scriptable? breaks Sveltekit?) */
|
292
178
|
"no-implied-eval": ERROR, /* TSLint */
|
293
179
|
"no-inline-comments": OFF, /* preference */
|
294
|
-
"no-invalid-this": [
|
295
|
-
ERROR,
|
296
|
-
{ capIsConstructor: false },
|
297
|
-
], /* TSLint:off: tsconfig: { strict, noImplicitThis } */
|
180
|
+
"no-invalid-this": [ERROR, { capIsConstructor: false }], /* TSLint:off: tsconfig: { strict, noImplicitThis } */
|
298
181
|
"no-iterator": ERROR,
|
299
182
|
"no-label-var": ERROR,
|
300
183
|
"no-lone-blocks": ERROR,
|
301
184
|
"no-lonely-if": OFF, /* preference */
|
302
185
|
"no-loop-func": ERROR, /* TSLint */
|
303
186
|
"no-magic-numbers": OFF, /* preference - breaks TypeScript number literals, even with most liberal exceptions */
|
304
|
-
"no-multi-assign": [
|
305
|
-
ERROR,
|
306
|
-
{ ignoreNonDeclaration: false },
|
307
|
-
],
|
187
|
+
"no-multi-assign": [ERROR, { ignoreNonDeclaration: false }],
|
308
188
|
"no-multi-str": ERROR,
|
309
189
|
"no-negated-condition": OFF, /* preference */
|
310
190
|
"no-nested-ternary": OFF, /* preference */
|
@@ -315,38 +195,19 @@ export default [
|
|
315
195
|
"no-object-constructor": ERROR,
|
316
196
|
"no-octal": ERROR,
|
317
197
|
"no-octal-escape": ERROR,
|
318
|
-
"no-param-reassign": [
|
319
|
-
|
320
|
-
{
|
321
|
-
props: true,
|
322
|
-
ignorePropertyModificationsFor: [],
|
323
|
-
ignorePropertyModificationsForRegex: [],
|
324
|
-
},
|
325
|
-
],
|
326
|
-
"no-plusplus": [
|
327
|
-
ERROR,
|
328
|
-
{ allowForLoopAfterthoughts: true },
|
329
|
-
],
|
198
|
+
"no-param-reassign": [ERROR, { props: true, ignorePropertyModificationsFor: [], ignorePropertyModificationsForRegex: [] }],
|
199
|
+
"no-plusplus": [ERROR, { allowForLoopAfterthoughts: true }],
|
330
200
|
"no-proto": ERROR,
|
331
|
-
"no-redeclare": [
|
332
|
-
ERROR,
|
333
|
-
{ builtinGlobals: true },
|
334
|
-
], /* tsc -- TSLint:off: tsc (let, const, -var) */
|
201
|
+
"no-redeclare": [ERROR, { builtinGlobals: true }], /* tsc -- TSLint:off: tsc (let, const, -var) */
|
335
202
|
"no-regex-spaces": OFF, /* preference */
|
336
203
|
"no-restricted-exports": OFF, /* preference */
|
337
204
|
"no-restricted-globals": OFF, /* preference */
|
338
205
|
"no-restricted-imports": OFF, /* preference -- TSLint:off */
|
339
206
|
"no-restricted-properties": OFF, /* preference */
|
340
207
|
"no-restricted-syntax": OFF, /* preference */
|
341
|
-
"no-return-assign": [
|
342
|
-
ERROR,
|
343
|
-
ALWAYS, /* ALWAYS | "except-parens" (disallow assignments unless enclosed in parens) */
|
344
|
-
],
|
208
|
+
"no-return-assign": [ERROR, ALWAYS], /* ALWAYS | "except-parens" (disallow assignments unless enclosed in parens) */
|
345
209
|
"no-script-url": ERROR,
|
346
|
-
"no-sequences": [
|
347
|
-
ERROR,
|
348
|
-
{ allowInParentheses: true },
|
349
|
-
],
|
210
|
+
"no-sequences": [ERROR, { allowInParentheses: true }],
|
350
211
|
"no-shadow": OFF, /* investigate -- TSLint:off: investigate */
|
351
212
|
"no-shadow-restricted-names": ERROR,
|
352
213
|
"no-ternary": OFF, /* preference */
|
@@ -354,10 +215,7 @@ export default [
|
|
354
215
|
"no-undef-init": ERROR,
|
355
216
|
"no-undefined": OFF, /* investigate (breaks Scriptable? breaks Sveltekit?) */
|
356
217
|
"no-underscore-dangle": OFF, /* preference */
|
357
|
-
"no-unneeded-ternary": [
|
358
|
-
ERROR,
|
359
|
-
{ defaultAssignment: false },
|
360
|
-
],
|
218
|
+
"no-unneeded-ternary": [ERROR, { defaultAssignment: false }],
|
361
219
|
"no-unused-expressions": [
|
362
220
|
ERROR,
|
363
221
|
{
|
@@ -370,38 +228,17 @@ export default [
|
|
370
228
|
"no-unused-labels": ERROR,
|
371
229
|
"no-useless-call": ERROR,
|
372
230
|
"no-useless-catch": ERROR,
|
373
|
-
"no-useless-computed-key": [
|
374
|
-
ERROR,
|
375
|
-
{ enforceForClassMembers: true },
|
376
|
-
],
|
231
|
+
"no-useless-computed-key": [ERROR, { enforceForClassMembers: true }],
|
377
232
|
"no-useless-concat": ERROR,
|
378
233
|
"no-useless-constructor": ERROR, /* TSLint */
|
379
234
|
"no-useless-escape": ERROR,
|
380
|
-
"no-useless-rename": [
|
381
|
-
ERROR,
|
382
|
-
{
|
383
|
-
ignoreImport: false,
|
384
|
-
ignoreExport: false,
|
385
|
-
ignoreDestructuring: false,
|
386
|
-
},
|
387
|
-
],
|
235
|
+
"no-useless-rename": [ERROR, { ignoreImport: false, ignoreExport: false, ignoreDestructuring: false }],
|
388
236
|
"no-useless-return": ERROR,
|
389
237
|
"no-var": ERROR,
|
390
|
-
"no-void": [
|
391
|
-
ERROR,
|
392
|
-
{ allowAsStatement: true },
|
393
|
-
],
|
238
|
+
"no-void": [ERROR, { allowAsStatement: true }],
|
394
239
|
"no-warning-comments": OFF, /* preference */
|
395
240
|
"no-with": ERROR,
|
396
|
-
"object-shorthand": [
|
397
|
-
ERROR,
|
398
|
-
ALWAYS,
|
399
|
-
{
|
400
|
-
avoidQuotes: true,
|
401
|
-
ignoreConstructors: false,
|
402
|
-
avoidExplicitReturnArrows: false,
|
403
|
-
},
|
404
|
-
],
|
241
|
+
"object-shorthand": [ERROR, ALWAYS, { avoidQuotes: true, ignoreConstructors: false, avoidExplicitReturnArrows: false }],
|
405
242
|
"one-var": [
|
406
243
|
ERROR,
|
407
244
|
{
|
@@ -411,58 +248,24 @@ export default [
|
|
411
248
|
separateRequires: true,
|
412
249
|
},
|
413
250
|
],
|
414
|
-
"operator-assignment": [
|
415
|
-
|
416
|
-
ALWAYS,
|
417
|
-
],
|
418
|
-
"prefer-arrow-callback": [
|
419
|
-
ERROR,
|
420
|
-
{
|
421
|
-
allowNamedFunctions: false,
|
422
|
-
allowUnboundThis: true,
|
423
|
-
},
|
424
|
-
],
|
251
|
+
"operator-assignment": [ERROR, ALWAYS],
|
252
|
+
"prefer-arrow-callback": [ERROR, { allowNamedFunctions: false, allowUnboundThis: true }],
|
425
253
|
"prefer-const": [
|
426
254
|
ERROR,
|
427
|
-
{
|
428
|
-
destructuring: ALL,
|
429
|
-
ignoreReadBeforeAssign: false,
|
430
|
-
},
|
255
|
+
{ destructuring: ALL, ignoreReadBeforeAssign: false },
|
431
256
|
],
|
432
|
-
"prefer-destructuring": [
|
433
|
-
ERROR,
|
434
|
-
{
|
435
|
-
VariableDeclarator: {
|
436
|
-
array: true,
|
437
|
-
object: true,
|
438
|
-
},
|
439
|
-
AssignmentExpression: {
|
440
|
-
array: false,
|
441
|
-
object: false,
|
442
|
-
},
|
443
|
-
},
|
444
|
-
{ enforceForRenamedProperties: true },
|
445
|
-
], /* TSLint */
|
257
|
+
"prefer-destructuring": [ERROR, { VariableDeclarator: { array: true, object: true }, AssignmentExpression: { array: false, object: false } }, { enforceForRenamedProperties: true }], /* TSLint */
|
446
258
|
"prefer-exponentiation-operator": ERROR,
|
447
259
|
"prefer-named-capture-group": OFF,
|
448
260
|
"prefer-numeric-literals": ERROR,
|
449
261
|
"prefer-object-has-own": ERROR,
|
450
262
|
"prefer-object-spread": ERROR,
|
451
|
-
"prefer-promise-reject-errors": [
|
452
|
-
|
453
|
-
{ allowEmptyReject: false },
|
454
|
-
],
|
455
|
-
"prefer-regex-literals": [
|
456
|
-
ERROR,
|
457
|
-
{ disallowRedundantWrapping: true },
|
458
|
-
], /* TSLint */
|
263
|
+
"prefer-promise-reject-errors": [ERROR, { allowEmptyReject: false }],
|
264
|
+
"prefer-regex-literals": [ERROR, { disallowRedundantWrapping: true }], /* TSLint */
|
459
265
|
"prefer-rest-params": ERROR,
|
460
266
|
"prefer-spread": ERROR,
|
461
267
|
"prefer-template": ERROR,
|
462
|
-
radix: [
|
463
|
-
ERROR,
|
464
|
-
AS_NEEDED,
|
465
|
-
],
|
268
|
+
radix: [ERROR, AS_NEEDED],
|
466
269
|
"require-await": ERROR, /* TSLint */
|
467
270
|
"require-unicode-regexp": ERROR,
|
468
271
|
"require-yield": ERROR,
|
@@ -472,18 +275,11 @@ export default [
|
|
472
275
|
strict: OFF, /* preference */
|
473
276
|
"symbol-description": OFF, /* preference */
|
474
277
|
"vars-on-top": ERROR,
|
475
|
-
yoda: [
|
476
|
-
ERROR,
|
477
|
-
NEVER,
|
478
|
-
{
|
479
|
-
exceptRange: false,
|
480
|
-
onlyEquality: false,
|
481
|
-
},
|
482
|
-
],
|
278
|
+
yoda: [ERROR, NEVER, { exceptRange: false, onlyEquality: false }],
|
483
279
|
|
484
280
|
// #endregion
|
485
281
|
|
486
|
-
// Layout & Formatting
|
282
|
+
// #region Layout & Formatting
|
487
283
|
// [ https://eslint.org/docs/latest/rules/#layout--formatting ]
|
488
284
|
"unicode-bom": OFF, /* preference: don't care */
|
489
285
|
|