@eslinted/defaults 17.10.0 → 18.0.0-rc.1
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/dist/index.d.ts +246 -265
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/css/index.d.ts +9 -9
- package/dist/rules/css/index.js +9 -9
- package/dist/rules/css/index.js.map +1 -1
- package/dist/rules/html/index.d.ts +42 -42
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/html/index.js +42 -42
- package/dist/rules/html/index.js.map +1 -1
- package/dist/rules/index.d.ts +246 -265
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js.d.ts +112 -119
- package/dist/rules/js.d.ts.map +1 -1
- package/dist/rules/js.eslint.d.ts +45 -52
- package/dist/rules/js.eslint.d.ts.map +1 -1
- package/dist/rules/js.eslint.js +45 -52
- package/dist/rules/js.eslint.js.map +1 -1
- package/dist/rules/js.stylistic.d.ts +67 -67
- package/dist/rules/js.stylistic.d.ts.map +1 -1
- package/dist/rules/js.stylistic.js +67 -67
- package/dist/rules/js.stylistic.js.map +1 -1
- package/dist/rules/json/index.d.ts +8 -11
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/plugin/extend.d.ts +8 -11
- package/dist/rules/json/plugin/extend.d.ts.map +1 -1
- package/dist/rules/json/plugin/extend.js +8 -11
- package/dist/rules/json/plugin/extend.js.map +1 -1
- package/dist/rules/jsoncc/index.d.ts +1 -1
- package/dist/rules/jsoncc/index.js +1 -1
- package/dist/rules/svelte/extend.d.ts +1 -1
- package/dist/rules/svelte/extend.js +1 -1
- package/dist/rules/svelte/extend.js.map +1 -1
- package/dist/rules/svelte/index.d.ts +24 -24
- package/dist/rules/svelte/svelte.d.ts +23 -23
- package/dist/rules/svelte/svelte.js +23 -23
- package/dist/rules/svelte/svelte.js.map +1 -1
- package/dist/rules/ts/extend.d.ts +4 -13
- package/dist/rules/ts/extend.d.ts.map +1 -1
- package/dist/rules/ts/extend.js +4 -13
- package/dist/rules/ts/extend.js.map +1 -1
- package/dist/rules/ts/index.d.ts +31 -41
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/ts/ts.d.ts +27 -28
- package/dist/rules/ts/ts.d.ts.map +1 -1
- package/dist/rules/ts/ts.js +27 -28
- package/dist/rules/ts/ts.js.map +1 -1
- package/dist/rules/yml/extend.d.ts +7 -7
- package/dist/rules/yml/extend.js +7 -7
- package/dist/rules/yml/extend.js.map +1 -1
- package/dist/rules/yml/index.d.ts +19 -18
- package/dist/rules/yml/index.d.ts.map +1 -1
- package/dist/rules/yml/yml.d.ts +12 -11
- package/dist/rules/yml/yml.d.ts.map +1 -1
- package/dist/rules/yml/yml.js +12 -11
- package/dist/rules/yml/yml.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/css/index.ts +11 -11
- package/src/rules/html/index.ts +50 -58
- package/src/rules/js.eslint.ts +143 -162
- package/src/rules/js.stylistic.ts +87 -88
- package/src/rules/json/json.ts +3 -3
- package/src/rules/json/plugin/extend.ts +11 -14
- package/src/rules/json/plugin/index.ts +3 -3
- package/src/rules/jsonc/index.ts +1 -1
- package/src/rules/jsoncc/index.ts +2 -2
- package/src/rules/svelte/disable.ts +3 -3
- package/src/rules/svelte/extend.ts +3 -3
- package/src/rules/svelte/svelte.ts +26 -26
- package/src/rules/ts/disable.ts +4 -4
- package/src/rules/ts/extend.ts +7 -15
- package/src/rules/ts/ts.ts +44 -44
- package/src/rules/yml/extend.ts +7 -7
- package/src/rules/yml/yml.ts +15 -15
- package/tsconfig-base.json +2 -4
|
@@ -72,8 +72,8 @@ declare const _default: {
|
|
|
72
72
|
readonly "no-undef": State.ON;
|
|
73
73
|
readonly "no-unexpected-multiline": State.ON;
|
|
74
74
|
readonly "no-unmodified-loop-condition": State.ON;
|
|
75
|
-
readonly "no-unreachable": State.
|
|
76
|
-
readonly "no-unreachable-loop": State.
|
|
75
|
+
readonly "no-unreachable": State.WARN;
|
|
76
|
+
readonly "no-unreachable-loop": State.WARN;
|
|
77
77
|
readonly "no-unsafe-finally": State.ON;
|
|
78
78
|
readonly "no-unsafe-negation": readonly [
|
|
79
79
|
State.ON,
|
|
@@ -87,8 +87,8 @@ declare const _default: {
|
|
|
87
87
|
readonly disallowArithmeticOperators: true;
|
|
88
88
|
}
|
|
89
89
|
];
|
|
90
|
-
readonly "no-unused-private-class-members": State.
|
|
91
|
-
readonly "no-unused-vars": State.
|
|
90
|
+
readonly "no-unused-private-class-members": State.WARN;
|
|
91
|
+
readonly "no-unused-vars": State.WARN;
|
|
92
92
|
readonly "no-use-before-define": readonly [
|
|
93
93
|
State.ON,
|
|
94
94
|
{
|
|
@@ -116,21 +116,21 @@ declare const _default: {
|
|
|
116
116
|
readonly enforceForTSTypes: true;
|
|
117
117
|
}
|
|
118
118
|
];
|
|
119
|
-
readonly "arrow-body-style": State.
|
|
119
|
+
readonly "arrow-body-style": State.WARN;
|
|
120
120
|
readonly "block-scoped-var": State.ON;
|
|
121
121
|
readonly "consistent-return": State.ON;
|
|
122
122
|
readonly "consistent-this": State.ON;
|
|
123
123
|
readonly curly: readonly [
|
|
124
|
-
State.
|
|
124
|
+
State.WARN,
|
|
125
125
|
"multi"
|
|
126
126
|
];
|
|
127
127
|
readonly "default-case-last": State.ON;
|
|
128
128
|
readonly "default-param-last": State.ON;
|
|
129
|
-
readonly "dot-notation": State.
|
|
129
|
+
readonly "dot-notation": State.WARN;
|
|
130
130
|
readonly eqeqeq: State.ON;
|
|
131
|
-
readonly "init-declarations": State.
|
|
131
|
+
readonly "init-declarations": State.WARN;
|
|
132
132
|
readonly "logical-assignment-operators": readonly [
|
|
133
|
-
State.
|
|
133
|
+
State.WARN,
|
|
134
134
|
"always",
|
|
135
135
|
{
|
|
136
136
|
readonly enforceForIfStatements: true;
|
|
@@ -144,9 +144,10 @@ declare const _default: {
|
|
|
144
144
|
readonly "no-continue": State.ON;
|
|
145
145
|
readonly "no-delete-var": State.ON;
|
|
146
146
|
readonly "no-div-regex": State.ON;
|
|
147
|
+
readonly "no-else-return": State.ON;
|
|
147
148
|
readonly "no-empty": State.ON;
|
|
148
149
|
readonly "no-empty-function": readonly [
|
|
149
|
-
State.
|
|
150
|
+
State.WARN,
|
|
150
151
|
{
|
|
151
152
|
readonly allow: readonly [
|
|
152
153
|
"constructors",
|
|
@@ -157,18 +158,18 @@ declare const _default: {
|
|
|
157
158
|
];
|
|
158
159
|
}
|
|
159
160
|
];
|
|
160
|
-
readonly "no-empty-static-block": State.
|
|
161
|
+
readonly "no-empty-static-block": State.WARN;
|
|
161
162
|
readonly "no-eq-null": State.ON;
|
|
162
163
|
readonly "no-eval": State.ON;
|
|
163
164
|
readonly "no-extend-native": State.ON;
|
|
164
165
|
readonly "no-extra-bind": State.ON;
|
|
165
166
|
readonly "no-extra-boolean-cast": readonly [
|
|
166
|
-
State.
|
|
167
|
+
State.WARN,
|
|
167
168
|
{
|
|
168
169
|
readonly enforceForLogicalOperands: true;
|
|
169
170
|
}
|
|
170
171
|
];
|
|
171
|
-
readonly "no-extra-label": State.
|
|
172
|
+
readonly "no-extra-label": State.WARN;
|
|
172
173
|
readonly "no-global-assign": State.ON;
|
|
173
174
|
readonly "no-implicit-coercion": State.ON;
|
|
174
175
|
readonly "no-implied-eval": State.ON;
|
|
@@ -179,11 +180,11 @@ declare const _default: {
|
|
|
179
180
|
}
|
|
180
181
|
];
|
|
181
182
|
readonly "no-iterator": State.ON;
|
|
182
|
-
readonly "no-label-var": State.
|
|
183
|
+
readonly "no-label-var": State.WARN;
|
|
183
184
|
readonly "no-lone-blocks": State.ON;
|
|
184
185
|
readonly "no-loop-func": State.ON;
|
|
185
186
|
readonly "no-multi-assign": State.ON;
|
|
186
|
-
readonly "no-multi-str": State.
|
|
187
|
+
readonly "no-multi-str": State.WARN;
|
|
187
188
|
readonly "no-new": State.ON;
|
|
188
189
|
readonly "no-new-func": State.ON;
|
|
189
190
|
readonly "no-new-wrappers": State.ON;
|
|
@@ -202,33 +203,33 @@ declare const _default: {
|
|
|
202
203
|
readonly "no-script-url": State.ON;
|
|
203
204
|
readonly "no-sequences": State.ON;
|
|
204
205
|
readonly "no-shadow-restricted-names": State.ON;
|
|
205
|
-
readonly "no-throw-literal": State.
|
|
206
|
+
readonly "no-throw-literal": State.WARN;
|
|
206
207
|
readonly "no-undef-init": State.ON;
|
|
207
|
-
readonly "no-unneeded-ternary": State.
|
|
208
|
+
readonly "no-unneeded-ternary": State.WARN;
|
|
208
209
|
readonly "no-unused-expressions": readonly [
|
|
209
|
-
State.
|
|
210
|
+
State.WARN,
|
|
210
211
|
{
|
|
211
212
|
readonly allowShortCircuit: true;
|
|
212
213
|
readonly allowTernary: true;
|
|
213
214
|
}
|
|
214
215
|
];
|
|
215
|
-
readonly "no-unused-labels": State.
|
|
216
|
-
readonly "no-useless-call": State.
|
|
217
|
-
readonly "no-useless-catch": State.
|
|
218
|
-
readonly "no-useless-computed-key": State.
|
|
219
|
-
readonly "no-useless-concat": State.
|
|
220
|
-
readonly "no-useless-constructor": State.
|
|
216
|
+
readonly "no-unused-labels": State.WARN;
|
|
217
|
+
readonly "no-useless-call": State.WARN;
|
|
218
|
+
readonly "no-useless-catch": State.WARN;
|
|
219
|
+
readonly "no-useless-computed-key": State.WARN;
|
|
220
|
+
readonly "no-useless-concat": State.WARN;
|
|
221
|
+
readonly "no-useless-constructor": State.WARN;
|
|
221
222
|
readonly "no-useless-escape": readonly [
|
|
222
|
-
State.
|
|
223
|
+
State.WARN,
|
|
223
224
|
{
|
|
224
225
|
readonly allowRegexCharacters: readonly [
|
|
225
226
|
"-"
|
|
226
227
|
];
|
|
227
228
|
}
|
|
228
229
|
];
|
|
229
|
-
readonly "no-useless-rename": State.
|
|
230
|
-
readonly "no-useless-return": State.
|
|
231
|
-
readonly "no-var": State.
|
|
230
|
+
readonly "no-useless-rename": State.WARN;
|
|
231
|
+
readonly "no-useless-return": State.WARN;
|
|
232
|
+
readonly "no-var": State.WARN;
|
|
232
233
|
readonly "no-void": readonly [
|
|
233
234
|
State.ON,
|
|
234
235
|
{
|
|
@@ -236,9 +237,9 @@ declare const _default: {
|
|
|
236
237
|
}
|
|
237
238
|
];
|
|
238
239
|
readonly "no-with": State.ON;
|
|
239
|
-
readonly "object-shorthand": State.
|
|
240
|
+
readonly "object-shorthand": State.WARN;
|
|
240
241
|
readonly "one-var": readonly [
|
|
241
|
-
State.
|
|
242
|
+
State.WARN,
|
|
242
243
|
{
|
|
243
244
|
readonly var: "consecutive";
|
|
244
245
|
readonly let: "consecutive";
|
|
@@ -248,36 +249,27 @@ declare const _default: {
|
|
|
248
249
|
readonly separateRequires: true;
|
|
249
250
|
}
|
|
250
251
|
];
|
|
251
|
-
readonly "operator-assignment": State.
|
|
252
|
-
readonly "prefer-arrow-callback": State.
|
|
252
|
+
readonly "operator-assignment": State.WARN;
|
|
253
|
+
readonly "prefer-arrow-callback": State.WARN;
|
|
253
254
|
readonly "prefer-const": readonly [
|
|
254
|
-
State.
|
|
255
|
+
State.WARN,
|
|
255
256
|
{
|
|
256
257
|
readonly destructuring: "all";
|
|
257
258
|
}
|
|
258
259
|
];
|
|
259
|
-
readonly "prefer-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
readonly object: false;
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
];
|
|
268
|
-
readonly "prefer-exponentiation-operator": State.ON;
|
|
269
|
-
readonly "prefer-numeric-literals": State.ON;
|
|
270
|
-
readonly "prefer-object-has-own": State.ON;
|
|
271
|
-
readonly "prefer-object-spread": State.ON;
|
|
272
|
-
readonly "prefer-promise-reject-errors": State.ON;
|
|
260
|
+
readonly "prefer-exponentiation-operator": State.WARN;
|
|
261
|
+
readonly "prefer-numeric-literals": State.WARN;
|
|
262
|
+
readonly "prefer-object-has-own": State.WARN;
|
|
263
|
+
readonly "prefer-object-spread": State.WARN;
|
|
264
|
+
readonly "prefer-promise-reject-errors": State.WARN;
|
|
273
265
|
readonly "prefer-regex-literals": readonly [
|
|
274
|
-
State.
|
|
266
|
+
State.WARN,
|
|
275
267
|
{
|
|
276
268
|
readonly disallowRedundantWrapping: true;
|
|
277
269
|
}
|
|
278
270
|
];
|
|
279
|
-
readonly "prefer-rest-params": State.
|
|
280
|
-
readonly "prefer-spread": State.
|
|
271
|
+
readonly "prefer-rest-params": State.WARN;
|
|
272
|
+
readonly "prefer-spread": State.WARN;
|
|
281
273
|
readonly "preserve-caught-error": readonly [
|
|
282
274
|
State.ON,
|
|
283
275
|
{
|
|
@@ -291,8 +283,9 @@ declare const _default: {
|
|
|
291
283
|
readonly "require-await": State.ON;
|
|
292
284
|
readonly "require-unicode-regexp": State.ON;
|
|
293
285
|
readonly "require-yield": State.ON;
|
|
294
|
-
readonly "vars-on-top": State.
|
|
295
|
-
readonly yoda: State.
|
|
286
|
+
readonly "vars-on-top": State.WARN;
|
|
287
|
+
readonly yoda: State.WARN;
|
|
288
|
+
readonly "unicode-bom": State.WARN;
|
|
296
289
|
};
|
|
297
290
|
};
|
|
298
291
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.eslint.d.ts","sourceRoot":"","sources":["../../src/rules/js.eslint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"js.eslint.d.ts","sourceRoot":"","sources":["../../src/rules/js.eslint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,wBA2VE"}
|
package/dist/rules/js.eslint.js
CHANGED
|
@@ -71,8 +71,8 @@ export default {
|
|
|
71
71
|
"no-undef": 2,
|
|
72
72
|
"no-unexpected-multiline": 2,
|
|
73
73
|
"no-unmodified-loop-condition": 2,
|
|
74
|
-
"no-unreachable":
|
|
75
|
-
"no-unreachable-loop":
|
|
74
|
+
"no-unreachable": 1,
|
|
75
|
+
"no-unreachable-loop": 1,
|
|
76
76
|
"no-unsafe-finally": 2,
|
|
77
77
|
"no-unsafe-negation": [
|
|
78
78
|
2,
|
|
@@ -86,8 +86,8 @@ export default {
|
|
|
86
86
|
disallowArithmeticOperators: true,
|
|
87
87
|
},
|
|
88
88
|
],
|
|
89
|
-
"no-unused-private-class-members":
|
|
90
|
-
"no-unused-vars":
|
|
89
|
+
"no-unused-private-class-members": 1,
|
|
90
|
+
"no-unused-vars": 1,
|
|
91
91
|
"no-use-before-define": [
|
|
92
92
|
2,
|
|
93
93
|
{
|
|
@@ -115,21 +115,21 @@ export default {
|
|
|
115
115
|
enforceForTSTypes: true,
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
|
-
"arrow-body-style":
|
|
118
|
+
"arrow-body-style": 1,
|
|
119
119
|
"block-scoped-var": 2,
|
|
120
120
|
"consistent-return": 2,
|
|
121
121
|
"consistent-this": 2,
|
|
122
122
|
curly: [
|
|
123
|
-
|
|
123
|
+
1,
|
|
124
124
|
"multi",
|
|
125
125
|
],
|
|
126
126
|
"default-case-last": 2,
|
|
127
127
|
"default-param-last": 2,
|
|
128
|
-
"dot-notation":
|
|
128
|
+
"dot-notation": 1,
|
|
129
129
|
eqeqeq: 2,
|
|
130
|
-
"init-declarations":
|
|
130
|
+
"init-declarations": 1,
|
|
131
131
|
"logical-assignment-operators": [
|
|
132
|
-
|
|
132
|
+
1,
|
|
133
133
|
"always",
|
|
134
134
|
{
|
|
135
135
|
enforceForIfStatements: true,
|
|
@@ -143,9 +143,10 @@ export default {
|
|
|
143
143
|
"no-continue": 2,
|
|
144
144
|
"no-delete-var": 2,
|
|
145
145
|
"no-div-regex": 2,
|
|
146
|
+
"no-else-return": 2,
|
|
146
147
|
"no-empty": 2,
|
|
147
148
|
"no-empty-function": [
|
|
148
|
-
|
|
149
|
+
1,
|
|
149
150
|
{
|
|
150
151
|
allow: [
|
|
151
152
|
"constructors",
|
|
@@ -156,18 +157,18 @@ export default {
|
|
|
156
157
|
],
|
|
157
158
|
},
|
|
158
159
|
],
|
|
159
|
-
"no-empty-static-block":
|
|
160
|
+
"no-empty-static-block": 1,
|
|
160
161
|
"no-eq-null": 2,
|
|
161
162
|
"no-eval": 2,
|
|
162
163
|
"no-extend-native": 2,
|
|
163
164
|
"no-extra-bind": 2,
|
|
164
165
|
"no-extra-boolean-cast": [
|
|
165
|
-
|
|
166
|
+
1,
|
|
166
167
|
{
|
|
167
168
|
enforceForLogicalOperands: true,
|
|
168
169
|
},
|
|
169
170
|
],
|
|
170
|
-
"no-extra-label":
|
|
171
|
+
"no-extra-label": 1,
|
|
171
172
|
"no-global-assign": 2,
|
|
172
173
|
"no-implicit-coercion": 2,
|
|
173
174
|
"no-implied-eval": 2,
|
|
@@ -178,11 +179,11 @@ export default {
|
|
|
178
179
|
},
|
|
179
180
|
],
|
|
180
181
|
"no-iterator": 2,
|
|
181
|
-
"no-label-var":
|
|
182
|
+
"no-label-var": 1,
|
|
182
183
|
"no-lone-blocks": 2,
|
|
183
184
|
"no-loop-func": 2,
|
|
184
185
|
"no-multi-assign": 2,
|
|
185
|
-
"no-multi-str":
|
|
186
|
+
"no-multi-str": 1,
|
|
186
187
|
"no-new": 2,
|
|
187
188
|
"no-new-func": 2,
|
|
188
189
|
"no-new-wrappers": 2,
|
|
@@ -201,31 +202,31 @@ export default {
|
|
|
201
202
|
"no-script-url": 2,
|
|
202
203
|
"no-sequences": 2,
|
|
203
204
|
"no-shadow-restricted-names": 2,
|
|
204
|
-
"no-throw-literal":
|
|
205
|
+
"no-throw-literal": 1,
|
|
205
206
|
"no-undef-init": 2,
|
|
206
|
-
"no-unneeded-ternary":
|
|
207
|
+
"no-unneeded-ternary": 1,
|
|
207
208
|
"no-unused-expressions": [
|
|
208
|
-
|
|
209
|
+
1,
|
|
209
210
|
{
|
|
210
211
|
allowShortCircuit: true,
|
|
211
212
|
allowTernary: true,
|
|
212
213
|
},
|
|
213
214
|
],
|
|
214
|
-
"no-unused-labels":
|
|
215
|
-
"no-useless-call":
|
|
216
|
-
"no-useless-catch":
|
|
217
|
-
"no-useless-computed-key":
|
|
218
|
-
"no-useless-concat":
|
|
219
|
-
"no-useless-constructor":
|
|
215
|
+
"no-unused-labels": 1,
|
|
216
|
+
"no-useless-call": 1,
|
|
217
|
+
"no-useless-catch": 1,
|
|
218
|
+
"no-useless-computed-key": 1,
|
|
219
|
+
"no-useless-concat": 1,
|
|
220
|
+
"no-useless-constructor": 1,
|
|
220
221
|
"no-useless-escape": [
|
|
221
|
-
|
|
222
|
+
1,
|
|
222
223
|
{
|
|
223
224
|
allowRegexCharacters: ["-"],
|
|
224
225
|
},
|
|
225
226
|
],
|
|
226
|
-
"no-useless-rename":
|
|
227
|
-
"no-useless-return":
|
|
228
|
-
"no-var":
|
|
227
|
+
"no-useless-rename": 1,
|
|
228
|
+
"no-useless-return": 1,
|
|
229
|
+
"no-var": 1,
|
|
229
230
|
"no-void": [
|
|
230
231
|
2,
|
|
231
232
|
{
|
|
@@ -233,9 +234,9 @@ export default {
|
|
|
233
234
|
},
|
|
234
235
|
],
|
|
235
236
|
"no-with": 2,
|
|
236
|
-
"object-shorthand":
|
|
237
|
+
"object-shorthand": 1,
|
|
237
238
|
"one-var": [
|
|
238
|
-
|
|
239
|
+
1,
|
|
239
240
|
{
|
|
240
241
|
"var": "consecutive",
|
|
241
242
|
let: "consecutive",
|
|
@@ -245,36 +246,27 @@ export default {
|
|
|
245
246
|
separateRequires: true,
|
|
246
247
|
},
|
|
247
248
|
],
|
|
248
|
-
"operator-assignment":
|
|
249
|
-
"prefer-arrow-callback":
|
|
249
|
+
"operator-assignment": 1,
|
|
250
|
+
"prefer-arrow-callback": 1,
|
|
250
251
|
"prefer-const": [
|
|
251
|
-
|
|
252
|
+
1,
|
|
252
253
|
{
|
|
253
254
|
destructuring: "all",
|
|
254
255
|
},
|
|
255
256
|
],
|
|
256
|
-
"prefer-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
object: false,
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
],
|
|
265
|
-
"prefer-exponentiation-operator": 2,
|
|
266
|
-
"prefer-numeric-literals": 2,
|
|
267
|
-
"prefer-object-has-own": 2,
|
|
268
|
-
"prefer-object-spread": 2,
|
|
269
|
-
"prefer-promise-reject-errors": 2,
|
|
257
|
+
"prefer-exponentiation-operator": 1,
|
|
258
|
+
"prefer-numeric-literals": 1,
|
|
259
|
+
"prefer-object-has-own": 1,
|
|
260
|
+
"prefer-object-spread": 1,
|
|
261
|
+
"prefer-promise-reject-errors": 1,
|
|
270
262
|
"prefer-regex-literals": [
|
|
271
|
-
|
|
263
|
+
1,
|
|
272
264
|
{
|
|
273
265
|
disallowRedundantWrapping: true,
|
|
274
266
|
},
|
|
275
267
|
],
|
|
276
|
-
"prefer-rest-params":
|
|
277
|
-
"prefer-spread":
|
|
268
|
+
"prefer-rest-params": 1,
|
|
269
|
+
"prefer-spread": 1,
|
|
278
270
|
"preserve-caught-error": [
|
|
279
271
|
2,
|
|
280
272
|
{
|
|
@@ -288,8 +280,9 @@ export default {
|
|
|
288
280
|
"require-await": 2,
|
|
289
281
|
"require-unicode-regexp": 2,
|
|
290
282
|
"require-yield": 2,
|
|
291
|
-
"vars-on-top":
|
|
292
|
-
yoda:
|
|
283
|
+
"vars-on-top": 1,
|
|
284
|
+
yoda: 1,
|
|
285
|
+
"unicode-bom": 1,
|
|
293
286
|
},
|
|
294
287
|
};
|
|
295
288
|
//# sourceMappingURL=js.eslint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.eslint.js","sourceRoot":"","sources":["../../src/rules/js.eslint.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAGL,uBAAuB,EAAE;;YAEvB;
|
|
1
|
+
{"version":3,"file":"js.eslint.js","sourceRoot":"","sources":["../../src/rules/js.eslint.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAGL,uBAAuB,EAAE;;YAEvB;gBACE,YAAY,EAAE,IAAI;gBAClB,SAAS,EAAE,IAAI;aAChB;SACF;QACD,mBAAmB,GAAU;QAC7B,eAAe,GAAU;QACzB,eAAe,GAAU;QACzB,2BAA2B,GAAU;QACrC,kBAAkB,GAAU;QAC5B,iBAAiB,GAAU;QAC3B,qBAAqB,GAAU;QAC/B,gBAAgB,GAAU;QAC1B,iBAAiB,GAAU;QAC3B,+BAA+B,GAAU;QACzC,uBAAuB,EAAE;;YAEvB;gBACE,UAAU,EAAE,KAAK;aAClB;SACF;QACD,uBAAuB,GAAU;QACjC,kBAAkB,GAAU;QAC5B,aAAa,GAAU;QACvB,cAAc,GAAU;QACxB,uBAAuB,GAAU;QACjC,iBAAiB,GAAU;QAC3B,cAAc,GAAU;QACxB,mBAAmB,GAAU;QAC7B,sBAAsB,EAAE;;YAEtB;gBACE,cAAc,EAAE,IAAI;gBACpB,wBAAwB,EAAE,IAAI;aAC/B;SACF;QACD,0BAA0B,GAAU;QACpC,kBAAkB,GAAU;QAC5B,cAAc,GAAU;QACxB,gBAAgB,GAAU;QAC1B,gBAAgB,GAAU;QAC1B,kBAAkB,GAAU;QAC5B,uBAAuB,EAAE;;YAEvB,MAAM;SACP;QACD,mBAAmB,GAAU;QAC7B,yBAAyB,GAAU;QACnC,sBAAsB,GAAU;QAChC,+BAA+B,GAAU;QACzC,8BAA8B,GAAU;QACxC,cAAc,GAAU;QACxB,4BAA4B,EAAE;;YAE5B;gBACE,SAAS,EAAE,IAAI;aAChB;SACF;QACD,uBAAuB,GAAU;QACjC,gBAAgB,GAAU;QAC1B,iBAAiB,GAAU;QAC3B,kBAAkB,GAAU;QAC5B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