@alextheman/eslint-plugin 1.2.9 → 1.2.11
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.cjs +380 -357
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +380 -355
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -47,347 +47,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
47
47
|
));
|
|
48
48
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
49
49
|
|
|
50
|
-
// node_modules/@eslint/js/package.json
|
|
51
|
-
var require_package = __commonJS({
|
|
52
|
-
"node_modules/@eslint/js/package.json"(exports2, module2) {
|
|
53
|
-
module2.exports = {
|
|
54
|
-
name: "@eslint/js",
|
|
55
|
-
version: "9.31.0",
|
|
56
|
-
description: "ESLint JavaScript language implementation",
|
|
57
|
-
funding: "https://eslint.org/donate",
|
|
58
|
-
main: "./src/index.js",
|
|
59
|
-
types: "./types/index.d.ts",
|
|
60
|
-
scripts: {
|
|
61
|
-
"test:types": "tsc -p tests/types/tsconfig.json"
|
|
62
|
-
},
|
|
63
|
-
files: [
|
|
64
|
-
"LICENSE",
|
|
65
|
-
"README.md",
|
|
66
|
-
"src",
|
|
67
|
-
"types"
|
|
68
|
-
],
|
|
69
|
-
publishConfig: {
|
|
70
|
-
access: "public"
|
|
71
|
-
},
|
|
72
|
-
repository: {
|
|
73
|
-
type: "git",
|
|
74
|
-
url: "https://github.com/eslint/eslint.git",
|
|
75
|
-
directory: "packages/js"
|
|
76
|
-
},
|
|
77
|
-
homepage: "https://eslint.org",
|
|
78
|
-
bugs: "https://github.com/eslint/eslint/issues/",
|
|
79
|
-
keywords: [
|
|
80
|
-
"javascript",
|
|
81
|
-
"eslint-plugin",
|
|
82
|
-
"eslint"
|
|
83
|
-
],
|
|
84
|
-
license: "MIT",
|
|
85
|
-
engines: {
|
|
86
|
-
node: "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
// node_modules/@eslint/js/src/configs/eslint-all.js
|
|
93
|
-
var require_eslint_all = __commonJS({
|
|
94
|
-
"node_modules/@eslint/js/src/configs/eslint-all.js"(exports2, module2) {
|
|
95
|
-
"use strict";
|
|
96
|
-
module2.exports = Object.freeze({
|
|
97
|
-
"rules": {
|
|
98
|
-
"accessor-pairs": "error",
|
|
99
|
-
"array-callback-return": "error",
|
|
100
|
-
"arrow-body-style": "error",
|
|
101
|
-
"block-scoped-var": "error",
|
|
102
|
-
"camelcase": "error",
|
|
103
|
-
"capitalized-comments": "error",
|
|
104
|
-
"class-methods-use-this": "error",
|
|
105
|
-
"complexity": "error",
|
|
106
|
-
"consistent-return": "error",
|
|
107
|
-
"consistent-this": "error",
|
|
108
|
-
"constructor-super": "error",
|
|
109
|
-
"curly": "error",
|
|
110
|
-
"default-case": "error",
|
|
111
|
-
"default-case-last": "error",
|
|
112
|
-
"default-param-last": "error",
|
|
113
|
-
"dot-notation": "error",
|
|
114
|
-
"eqeqeq": "error",
|
|
115
|
-
"for-direction": "error",
|
|
116
|
-
"func-name-matching": "error",
|
|
117
|
-
"func-names": "error",
|
|
118
|
-
"func-style": "error",
|
|
119
|
-
"getter-return": "error",
|
|
120
|
-
"grouped-accessor-pairs": "error",
|
|
121
|
-
"guard-for-in": "error",
|
|
122
|
-
"id-denylist": "error",
|
|
123
|
-
"id-length": "error",
|
|
124
|
-
"id-match": "error",
|
|
125
|
-
"init-declarations": "error",
|
|
126
|
-
"logical-assignment-operators": "error",
|
|
127
|
-
"max-classes-per-file": "error",
|
|
128
|
-
"max-depth": "error",
|
|
129
|
-
"max-lines": "error",
|
|
130
|
-
"max-lines-per-function": "error",
|
|
131
|
-
"max-nested-callbacks": "error",
|
|
132
|
-
"max-params": "error",
|
|
133
|
-
"max-statements": "error",
|
|
134
|
-
"new-cap": "error",
|
|
135
|
-
"no-alert": "error",
|
|
136
|
-
"no-array-constructor": "error",
|
|
137
|
-
"no-async-promise-executor": "error",
|
|
138
|
-
"no-await-in-loop": "error",
|
|
139
|
-
"no-bitwise": "error",
|
|
140
|
-
"no-caller": "error",
|
|
141
|
-
"no-case-declarations": "error",
|
|
142
|
-
"no-class-assign": "error",
|
|
143
|
-
"no-compare-neg-zero": "error",
|
|
144
|
-
"no-cond-assign": "error",
|
|
145
|
-
"no-console": "error",
|
|
146
|
-
"no-const-assign": "error",
|
|
147
|
-
"no-constant-binary-expression": "error",
|
|
148
|
-
"no-constant-condition": "error",
|
|
149
|
-
"no-constructor-return": "error",
|
|
150
|
-
"no-continue": "error",
|
|
151
|
-
"no-control-regex": "error",
|
|
152
|
-
"no-debugger": "error",
|
|
153
|
-
"no-delete-var": "error",
|
|
154
|
-
"no-div-regex": "error",
|
|
155
|
-
"no-dupe-args": "error",
|
|
156
|
-
"no-dupe-class-members": "error",
|
|
157
|
-
"no-dupe-else-if": "error",
|
|
158
|
-
"no-dupe-keys": "error",
|
|
159
|
-
"no-duplicate-case": "error",
|
|
160
|
-
"no-duplicate-imports": "error",
|
|
161
|
-
"no-else-return": "error",
|
|
162
|
-
"no-empty": "error",
|
|
163
|
-
"no-empty-character-class": "error",
|
|
164
|
-
"no-empty-function": "error",
|
|
165
|
-
"no-empty-pattern": "error",
|
|
166
|
-
"no-empty-static-block": "error",
|
|
167
|
-
"no-eq-null": "error",
|
|
168
|
-
"no-eval": "error",
|
|
169
|
-
"no-ex-assign": "error",
|
|
170
|
-
"no-extend-native": "error",
|
|
171
|
-
"no-extra-bind": "error",
|
|
172
|
-
"no-extra-boolean-cast": "error",
|
|
173
|
-
"no-extra-label": "error",
|
|
174
|
-
"no-fallthrough": "error",
|
|
175
|
-
"no-func-assign": "error",
|
|
176
|
-
"no-global-assign": "error",
|
|
177
|
-
"no-implicit-coercion": "error",
|
|
178
|
-
"no-implicit-globals": "error",
|
|
179
|
-
"no-implied-eval": "error",
|
|
180
|
-
"no-import-assign": "error",
|
|
181
|
-
"no-inline-comments": "error",
|
|
182
|
-
"no-inner-declarations": "error",
|
|
183
|
-
"no-invalid-regexp": "error",
|
|
184
|
-
"no-invalid-this": "error",
|
|
185
|
-
"no-irregular-whitespace": "error",
|
|
186
|
-
"no-iterator": "error",
|
|
187
|
-
"no-label-var": "error",
|
|
188
|
-
"no-labels": "error",
|
|
189
|
-
"no-lone-blocks": "error",
|
|
190
|
-
"no-lonely-if": "error",
|
|
191
|
-
"no-loop-func": "error",
|
|
192
|
-
"no-loss-of-precision": "error",
|
|
193
|
-
"no-magic-numbers": "error",
|
|
194
|
-
"no-misleading-character-class": "error",
|
|
195
|
-
"no-multi-assign": "error",
|
|
196
|
-
"no-multi-str": "error",
|
|
197
|
-
"no-negated-condition": "error",
|
|
198
|
-
"no-nested-ternary": "error",
|
|
199
|
-
"no-new": "error",
|
|
200
|
-
"no-new-func": "error",
|
|
201
|
-
"no-new-native-nonconstructor": "error",
|
|
202
|
-
"no-new-wrappers": "error",
|
|
203
|
-
"no-nonoctal-decimal-escape": "error",
|
|
204
|
-
"no-obj-calls": "error",
|
|
205
|
-
"no-object-constructor": "error",
|
|
206
|
-
"no-octal": "error",
|
|
207
|
-
"no-octal-escape": "error",
|
|
208
|
-
"no-param-reassign": "error",
|
|
209
|
-
"no-plusplus": "error",
|
|
210
|
-
"no-promise-executor-return": "error",
|
|
211
|
-
"no-proto": "error",
|
|
212
|
-
"no-prototype-builtins": "error",
|
|
213
|
-
"no-redeclare": "error",
|
|
214
|
-
"no-regex-spaces": "error",
|
|
215
|
-
"no-restricted-exports": "error",
|
|
216
|
-
"no-restricted-globals": "error",
|
|
217
|
-
"no-restricted-imports": "error",
|
|
218
|
-
"no-restricted-properties": "error",
|
|
219
|
-
"no-restricted-syntax": "error",
|
|
220
|
-
"no-return-assign": "error",
|
|
221
|
-
"no-script-url": "error",
|
|
222
|
-
"no-self-assign": "error",
|
|
223
|
-
"no-self-compare": "error",
|
|
224
|
-
"no-sequences": "error",
|
|
225
|
-
"no-setter-return": "error",
|
|
226
|
-
"no-shadow": "error",
|
|
227
|
-
"no-shadow-restricted-names": "error",
|
|
228
|
-
"no-sparse-arrays": "error",
|
|
229
|
-
"no-template-curly-in-string": "error",
|
|
230
|
-
"no-ternary": "error",
|
|
231
|
-
"no-this-before-super": "error",
|
|
232
|
-
"no-throw-literal": "error",
|
|
233
|
-
"no-unassigned-vars": "error",
|
|
234
|
-
"no-undef": "error",
|
|
235
|
-
"no-undef-init": "error",
|
|
236
|
-
"no-undefined": "error",
|
|
237
|
-
"no-underscore-dangle": "error",
|
|
238
|
-
"no-unexpected-multiline": "error",
|
|
239
|
-
"no-unmodified-loop-condition": "error",
|
|
240
|
-
"no-unneeded-ternary": "error",
|
|
241
|
-
"no-unreachable": "error",
|
|
242
|
-
"no-unreachable-loop": "error",
|
|
243
|
-
"no-unsafe-finally": "error",
|
|
244
|
-
"no-unsafe-negation": "error",
|
|
245
|
-
"no-unsafe-optional-chaining": "error",
|
|
246
|
-
"no-unused-expressions": "error",
|
|
247
|
-
"no-unused-labels": "error",
|
|
248
|
-
"no-unused-private-class-members": "error",
|
|
249
|
-
"no-unused-vars": "error",
|
|
250
|
-
"no-use-before-define": "error",
|
|
251
|
-
"no-useless-assignment": "error",
|
|
252
|
-
"no-useless-backreference": "error",
|
|
253
|
-
"no-useless-call": "error",
|
|
254
|
-
"no-useless-catch": "error",
|
|
255
|
-
"no-useless-computed-key": "error",
|
|
256
|
-
"no-useless-concat": "error",
|
|
257
|
-
"no-useless-constructor": "error",
|
|
258
|
-
"no-useless-escape": "error",
|
|
259
|
-
"no-useless-rename": "error",
|
|
260
|
-
"no-useless-return": "error",
|
|
261
|
-
"no-var": "error",
|
|
262
|
-
"no-void": "error",
|
|
263
|
-
"no-warning-comments": "error",
|
|
264
|
-
"no-with": "error",
|
|
265
|
-
"object-shorthand": "error",
|
|
266
|
-
"one-var": "error",
|
|
267
|
-
"operator-assignment": "error",
|
|
268
|
-
"prefer-arrow-callback": "error",
|
|
269
|
-
"prefer-const": "error",
|
|
270
|
-
"prefer-destructuring": "error",
|
|
271
|
-
"prefer-exponentiation-operator": "error",
|
|
272
|
-
"prefer-named-capture-group": "error",
|
|
273
|
-
"prefer-numeric-literals": "error",
|
|
274
|
-
"prefer-object-has-own": "error",
|
|
275
|
-
"prefer-object-spread": "error",
|
|
276
|
-
"prefer-promise-reject-errors": "error",
|
|
277
|
-
"prefer-regex-literals": "error",
|
|
278
|
-
"prefer-rest-params": "error",
|
|
279
|
-
"prefer-spread": "error",
|
|
280
|
-
"prefer-template": "error",
|
|
281
|
-
"radix": "error",
|
|
282
|
-
"require-atomic-updates": "error",
|
|
283
|
-
"require-await": "error",
|
|
284
|
-
"require-unicode-regexp": "error",
|
|
285
|
-
"require-yield": "error",
|
|
286
|
-
"sort-imports": "error",
|
|
287
|
-
"sort-keys": "error",
|
|
288
|
-
"sort-vars": "error",
|
|
289
|
-
"strict": "error",
|
|
290
|
-
"symbol-description": "error",
|
|
291
|
-
"unicode-bom": "error",
|
|
292
|
-
"use-isnan": "error",
|
|
293
|
-
"valid-typeof": "error",
|
|
294
|
-
"vars-on-top": "error",
|
|
295
|
-
"yoda": "error"
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
|
|
301
|
-
// node_modules/@eslint/js/src/configs/eslint-recommended.js
|
|
302
|
-
var require_eslint_recommended = __commonJS({
|
|
303
|
-
"node_modules/@eslint/js/src/configs/eslint-recommended.js"(exports2, module2) {
|
|
304
|
-
"use strict";
|
|
305
|
-
module2.exports = Object.freeze({
|
|
306
|
-
rules: Object.freeze({
|
|
307
|
-
"constructor-super": "error",
|
|
308
|
-
"for-direction": "error",
|
|
309
|
-
"getter-return": "error",
|
|
310
|
-
"no-async-promise-executor": "error",
|
|
311
|
-
"no-case-declarations": "error",
|
|
312
|
-
"no-class-assign": "error",
|
|
313
|
-
"no-compare-neg-zero": "error",
|
|
314
|
-
"no-cond-assign": "error",
|
|
315
|
-
"no-const-assign": "error",
|
|
316
|
-
"no-constant-binary-expression": "error",
|
|
317
|
-
"no-constant-condition": "error",
|
|
318
|
-
"no-control-regex": "error",
|
|
319
|
-
"no-debugger": "error",
|
|
320
|
-
"no-delete-var": "error",
|
|
321
|
-
"no-dupe-args": "error",
|
|
322
|
-
"no-dupe-class-members": "error",
|
|
323
|
-
"no-dupe-else-if": "error",
|
|
324
|
-
"no-dupe-keys": "error",
|
|
325
|
-
"no-duplicate-case": "error",
|
|
326
|
-
"no-empty": "error",
|
|
327
|
-
"no-empty-character-class": "error",
|
|
328
|
-
"no-empty-pattern": "error",
|
|
329
|
-
"no-empty-static-block": "error",
|
|
330
|
-
"no-ex-assign": "error",
|
|
331
|
-
"no-extra-boolean-cast": "error",
|
|
332
|
-
"no-fallthrough": "error",
|
|
333
|
-
"no-func-assign": "error",
|
|
334
|
-
"no-global-assign": "error",
|
|
335
|
-
"no-import-assign": "error",
|
|
336
|
-
"no-invalid-regexp": "error",
|
|
337
|
-
"no-irregular-whitespace": "error",
|
|
338
|
-
"no-loss-of-precision": "error",
|
|
339
|
-
"no-misleading-character-class": "error",
|
|
340
|
-
"no-new-native-nonconstructor": "error",
|
|
341
|
-
"no-nonoctal-decimal-escape": "error",
|
|
342
|
-
"no-obj-calls": "error",
|
|
343
|
-
"no-octal": "error",
|
|
344
|
-
"no-prototype-builtins": "error",
|
|
345
|
-
"no-redeclare": "error",
|
|
346
|
-
"no-regex-spaces": "error",
|
|
347
|
-
"no-self-assign": "error",
|
|
348
|
-
"no-setter-return": "error",
|
|
349
|
-
"no-shadow-restricted-names": "error",
|
|
350
|
-
"no-sparse-arrays": "error",
|
|
351
|
-
"no-this-before-super": "error",
|
|
352
|
-
"no-undef": "error",
|
|
353
|
-
"no-unexpected-multiline": "error",
|
|
354
|
-
"no-unreachable": "error",
|
|
355
|
-
"no-unsafe-finally": "error",
|
|
356
|
-
"no-unsafe-negation": "error",
|
|
357
|
-
"no-unsafe-optional-chaining": "error",
|
|
358
|
-
"no-unused-labels": "error",
|
|
359
|
-
"no-unused-private-class-members": "error",
|
|
360
|
-
"no-unused-vars": "error",
|
|
361
|
-
"no-useless-backreference": "error",
|
|
362
|
-
"no-useless-catch": "error",
|
|
363
|
-
"no-useless-escape": "error",
|
|
364
|
-
"no-with": "error",
|
|
365
|
-
"require-yield": "error",
|
|
366
|
-
"use-isnan": "error",
|
|
367
|
-
"valid-typeof": "error"
|
|
368
|
-
})
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
|
|
373
|
-
// node_modules/@eslint/js/src/index.js
|
|
374
|
-
var require_src = __commonJS({
|
|
375
|
-
"node_modules/@eslint/js/src/index.js"(exports2, module2) {
|
|
376
|
-
"use strict";
|
|
377
|
-
var { name: name2, version: version2 } = require_package();
|
|
378
|
-
module2.exports = {
|
|
379
|
-
meta: {
|
|
380
|
-
name: name2,
|
|
381
|
-
version: version2
|
|
382
|
-
},
|
|
383
|
-
configs: {
|
|
384
|
-
all: require_eslint_all(),
|
|
385
|
-
recommended: require_eslint_recommended()
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
|
|
391
50
|
// node_modules/globals/globals.json
|
|
392
51
|
var require_globals = __commonJS({
|
|
393
52
|
"node_modules/globals/globals.json"(exports2, module2) {
|
|
@@ -3684,15 +3343,356 @@ var require_globals = __commonJS({
|
|
|
3684
3343
|
YUI: false,
|
|
3685
3344
|
YUI_config: false
|
|
3686
3345
|
}
|
|
3687
|
-
};
|
|
3346
|
+
};
|
|
3347
|
+
}
|
|
3348
|
+
});
|
|
3349
|
+
|
|
3350
|
+
// node_modules/globals/index.js
|
|
3351
|
+
var require_globals2 = __commonJS({
|
|
3352
|
+
"node_modules/globals/index.js"(exports2, module2) {
|
|
3353
|
+
"use strict";
|
|
3354
|
+
module2.exports = require_globals();
|
|
3355
|
+
}
|
|
3356
|
+
});
|
|
3357
|
+
|
|
3358
|
+
// node_modules/@eslint/js/package.json
|
|
3359
|
+
var require_package = __commonJS({
|
|
3360
|
+
"node_modules/@eslint/js/package.json"(exports2, module2) {
|
|
3361
|
+
module2.exports = {
|
|
3362
|
+
name: "@eslint/js",
|
|
3363
|
+
version: "9.31.0",
|
|
3364
|
+
description: "ESLint JavaScript language implementation",
|
|
3365
|
+
funding: "https://eslint.org/donate",
|
|
3366
|
+
main: "./src/index.js",
|
|
3367
|
+
types: "./types/index.d.ts",
|
|
3368
|
+
scripts: {
|
|
3369
|
+
"test:types": "tsc -p tests/types/tsconfig.json"
|
|
3370
|
+
},
|
|
3371
|
+
files: [
|
|
3372
|
+
"LICENSE",
|
|
3373
|
+
"README.md",
|
|
3374
|
+
"src",
|
|
3375
|
+
"types"
|
|
3376
|
+
],
|
|
3377
|
+
publishConfig: {
|
|
3378
|
+
access: "public"
|
|
3379
|
+
},
|
|
3380
|
+
repository: {
|
|
3381
|
+
type: "git",
|
|
3382
|
+
url: "https://github.com/eslint/eslint.git",
|
|
3383
|
+
directory: "packages/js"
|
|
3384
|
+
},
|
|
3385
|
+
homepage: "https://eslint.org",
|
|
3386
|
+
bugs: "https://github.com/eslint/eslint/issues/",
|
|
3387
|
+
keywords: [
|
|
3388
|
+
"javascript",
|
|
3389
|
+
"eslint-plugin",
|
|
3390
|
+
"eslint"
|
|
3391
|
+
],
|
|
3392
|
+
license: "MIT",
|
|
3393
|
+
engines: {
|
|
3394
|
+
node: "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
3395
|
+
}
|
|
3396
|
+
};
|
|
3397
|
+
}
|
|
3398
|
+
});
|
|
3399
|
+
|
|
3400
|
+
// node_modules/@eslint/js/src/configs/eslint-all.js
|
|
3401
|
+
var require_eslint_all = __commonJS({
|
|
3402
|
+
"node_modules/@eslint/js/src/configs/eslint-all.js"(exports2, module2) {
|
|
3403
|
+
"use strict";
|
|
3404
|
+
module2.exports = Object.freeze({
|
|
3405
|
+
"rules": {
|
|
3406
|
+
"accessor-pairs": "error",
|
|
3407
|
+
"array-callback-return": "error",
|
|
3408
|
+
"arrow-body-style": "error",
|
|
3409
|
+
"block-scoped-var": "error",
|
|
3410
|
+
"camelcase": "error",
|
|
3411
|
+
"capitalized-comments": "error",
|
|
3412
|
+
"class-methods-use-this": "error",
|
|
3413
|
+
"complexity": "error",
|
|
3414
|
+
"consistent-return": "error",
|
|
3415
|
+
"consistent-this": "error",
|
|
3416
|
+
"constructor-super": "error",
|
|
3417
|
+
"curly": "error",
|
|
3418
|
+
"default-case": "error",
|
|
3419
|
+
"default-case-last": "error",
|
|
3420
|
+
"default-param-last": "error",
|
|
3421
|
+
"dot-notation": "error",
|
|
3422
|
+
"eqeqeq": "error",
|
|
3423
|
+
"for-direction": "error",
|
|
3424
|
+
"func-name-matching": "error",
|
|
3425
|
+
"func-names": "error",
|
|
3426
|
+
"func-style": "error",
|
|
3427
|
+
"getter-return": "error",
|
|
3428
|
+
"grouped-accessor-pairs": "error",
|
|
3429
|
+
"guard-for-in": "error",
|
|
3430
|
+
"id-denylist": "error",
|
|
3431
|
+
"id-length": "error",
|
|
3432
|
+
"id-match": "error",
|
|
3433
|
+
"init-declarations": "error",
|
|
3434
|
+
"logical-assignment-operators": "error",
|
|
3435
|
+
"max-classes-per-file": "error",
|
|
3436
|
+
"max-depth": "error",
|
|
3437
|
+
"max-lines": "error",
|
|
3438
|
+
"max-lines-per-function": "error",
|
|
3439
|
+
"max-nested-callbacks": "error",
|
|
3440
|
+
"max-params": "error",
|
|
3441
|
+
"max-statements": "error",
|
|
3442
|
+
"new-cap": "error",
|
|
3443
|
+
"no-alert": "error",
|
|
3444
|
+
"no-array-constructor": "error",
|
|
3445
|
+
"no-async-promise-executor": "error",
|
|
3446
|
+
"no-await-in-loop": "error",
|
|
3447
|
+
"no-bitwise": "error",
|
|
3448
|
+
"no-caller": "error",
|
|
3449
|
+
"no-case-declarations": "error",
|
|
3450
|
+
"no-class-assign": "error",
|
|
3451
|
+
"no-compare-neg-zero": "error",
|
|
3452
|
+
"no-cond-assign": "error",
|
|
3453
|
+
"no-console": "error",
|
|
3454
|
+
"no-const-assign": "error",
|
|
3455
|
+
"no-constant-binary-expression": "error",
|
|
3456
|
+
"no-constant-condition": "error",
|
|
3457
|
+
"no-constructor-return": "error",
|
|
3458
|
+
"no-continue": "error",
|
|
3459
|
+
"no-control-regex": "error",
|
|
3460
|
+
"no-debugger": "error",
|
|
3461
|
+
"no-delete-var": "error",
|
|
3462
|
+
"no-div-regex": "error",
|
|
3463
|
+
"no-dupe-args": "error",
|
|
3464
|
+
"no-dupe-class-members": "error",
|
|
3465
|
+
"no-dupe-else-if": "error",
|
|
3466
|
+
"no-dupe-keys": "error",
|
|
3467
|
+
"no-duplicate-case": "error",
|
|
3468
|
+
"no-duplicate-imports": "error",
|
|
3469
|
+
"no-else-return": "error",
|
|
3470
|
+
"no-empty": "error",
|
|
3471
|
+
"no-empty-character-class": "error",
|
|
3472
|
+
"no-empty-function": "error",
|
|
3473
|
+
"no-empty-pattern": "error",
|
|
3474
|
+
"no-empty-static-block": "error",
|
|
3475
|
+
"no-eq-null": "error",
|
|
3476
|
+
"no-eval": "error",
|
|
3477
|
+
"no-ex-assign": "error",
|
|
3478
|
+
"no-extend-native": "error",
|
|
3479
|
+
"no-extra-bind": "error",
|
|
3480
|
+
"no-extra-boolean-cast": "error",
|
|
3481
|
+
"no-extra-label": "error",
|
|
3482
|
+
"no-fallthrough": "error",
|
|
3483
|
+
"no-func-assign": "error",
|
|
3484
|
+
"no-global-assign": "error",
|
|
3485
|
+
"no-implicit-coercion": "error",
|
|
3486
|
+
"no-implicit-globals": "error",
|
|
3487
|
+
"no-implied-eval": "error",
|
|
3488
|
+
"no-import-assign": "error",
|
|
3489
|
+
"no-inline-comments": "error",
|
|
3490
|
+
"no-inner-declarations": "error",
|
|
3491
|
+
"no-invalid-regexp": "error",
|
|
3492
|
+
"no-invalid-this": "error",
|
|
3493
|
+
"no-irregular-whitespace": "error",
|
|
3494
|
+
"no-iterator": "error",
|
|
3495
|
+
"no-label-var": "error",
|
|
3496
|
+
"no-labels": "error",
|
|
3497
|
+
"no-lone-blocks": "error",
|
|
3498
|
+
"no-lonely-if": "error",
|
|
3499
|
+
"no-loop-func": "error",
|
|
3500
|
+
"no-loss-of-precision": "error",
|
|
3501
|
+
"no-magic-numbers": "error",
|
|
3502
|
+
"no-misleading-character-class": "error",
|
|
3503
|
+
"no-multi-assign": "error",
|
|
3504
|
+
"no-multi-str": "error",
|
|
3505
|
+
"no-negated-condition": "error",
|
|
3506
|
+
"no-nested-ternary": "error",
|
|
3507
|
+
"no-new": "error",
|
|
3508
|
+
"no-new-func": "error",
|
|
3509
|
+
"no-new-native-nonconstructor": "error",
|
|
3510
|
+
"no-new-wrappers": "error",
|
|
3511
|
+
"no-nonoctal-decimal-escape": "error",
|
|
3512
|
+
"no-obj-calls": "error",
|
|
3513
|
+
"no-object-constructor": "error",
|
|
3514
|
+
"no-octal": "error",
|
|
3515
|
+
"no-octal-escape": "error",
|
|
3516
|
+
"no-param-reassign": "error",
|
|
3517
|
+
"no-plusplus": "error",
|
|
3518
|
+
"no-promise-executor-return": "error",
|
|
3519
|
+
"no-proto": "error",
|
|
3520
|
+
"no-prototype-builtins": "error",
|
|
3521
|
+
"no-redeclare": "error",
|
|
3522
|
+
"no-regex-spaces": "error",
|
|
3523
|
+
"no-restricted-exports": "error",
|
|
3524
|
+
"no-restricted-globals": "error",
|
|
3525
|
+
"no-restricted-imports": "error",
|
|
3526
|
+
"no-restricted-properties": "error",
|
|
3527
|
+
"no-restricted-syntax": "error",
|
|
3528
|
+
"no-return-assign": "error",
|
|
3529
|
+
"no-script-url": "error",
|
|
3530
|
+
"no-self-assign": "error",
|
|
3531
|
+
"no-self-compare": "error",
|
|
3532
|
+
"no-sequences": "error",
|
|
3533
|
+
"no-setter-return": "error",
|
|
3534
|
+
"no-shadow": "error",
|
|
3535
|
+
"no-shadow-restricted-names": "error",
|
|
3536
|
+
"no-sparse-arrays": "error",
|
|
3537
|
+
"no-template-curly-in-string": "error",
|
|
3538
|
+
"no-ternary": "error",
|
|
3539
|
+
"no-this-before-super": "error",
|
|
3540
|
+
"no-throw-literal": "error",
|
|
3541
|
+
"no-unassigned-vars": "error",
|
|
3542
|
+
"no-undef": "error",
|
|
3543
|
+
"no-undef-init": "error",
|
|
3544
|
+
"no-undefined": "error",
|
|
3545
|
+
"no-underscore-dangle": "error",
|
|
3546
|
+
"no-unexpected-multiline": "error",
|
|
3547
|
+
"no-unmodified-loop-condition": "error",
|
|
3548
|
+
"no-unneeded-ternary": "error",
|
|
3549
|
+
"no-unreachable": "error",
|
|
3550
|
+
"no-unreachable-loop": "error",
|
|
3551
|
+
"no-unsafe-finally": "error",
|
|
3552
|
+
"no-unsafe-negation": "error",
|
|
3553
|
+
"no-unsafe-optional-chaining": "error",
|
|
3554
|
+
"no-unused-expressions": "error",
|
|
3555
|
+
"no-unused-labels": "error",
|
|
3556
|
+
"no-unused-private-class-members": "error",
|
|
3557
|
+
"no-unused-vars": "error",
|
|
3558
|
+
"no-use-before-define": "error",
|
|
3559
|
+
"no-useless-assignment": "error",
|
|
3560
|
+
"no-useless-backreference": "error",
|
|
3561
|
+
"no-useless-call": "error",
|
|
3562
|
+
"no-useless-catch": "error",
|
|
3563
|
+
"no-useless-computed-key": "error",
|
|
3564
|
+
"no-useless-concat": "error",
|
|
3565
|
+
"no-useless-constructor": "error",
|
|
3566
|
+
"no-useless-escape": "error",
|
|
3567
|
+
"no-useless-rename": "error",
|
|
3568
|
+
"no-useless-return": "error",
|
|
3569
|
+
"no-var": "error",
|
|
3570
|
+
"no-void": "error",
|
|
3571
|
+
"no-warning-comments": "error",
|
|
3572
|
+
"no-with": "error",
|
|
3573
|
+
"object-shorthand": "error",
|
|
3574
|
+
"one-var": "error",
|
|
3575
|
+
"operator-assignment": "error",
|
|
3576
|
+
"prefer-arrow-callback": "error",
|
|
3577
|
+
"prefer-const": "error",
|
|
3578
|
+
"prefer-destructuring": "error",
|
|
3579
|
+
"prefer-exponentiation-operator": "error",
|
|
3580
|
+
"prefer-named-capture-group": "error",
|
|
3581
|
+
"prefer-numeric-literals": "error",
|
|
3582
|
+
"prefer-object-has-own": "error",
|
|
3583
|
+
"prefer-object-spread": "error",
|
|
3584
|
+
"prefer-promise-reject-errors": "error",
|
|
3585
|
+
"prefer-regex-literals": "error",
|
|
3586
|
+
"prefer-rest-params": "error",
|
|
3587
|
+
"prefer-spread": "error",
|
|
3588
|
+
"prefer-template": "error",
|
|
3589
|
+
"radix": "error",
|
|
3590
|
+
"require-atomic-updates": "error",
|
|
3591
|
+
"require-await": "error",
|
|
3592
|
+
"require-unicode-regexp": "error",
|
|
3593
|
+
"require-yield": "error",
|
|
3594
|
+
"sort-imports": "error",
|
|
3595
|
+
"sort-keys": "error",
|
|
3596
|
+
"sort-vars": "error",
|
|
3597
|
+
"strict": "error",
|
|
3598
|
+
"symbol-description": "error",
|
|
3599
|
+
"unicode-bom": "error",
|
|
3600
|
+
"use-isnan": "error",
|
|
3601
|
+
"valid-typeof": "error",
|
|
3602
|
+
"vars-on-top": "error",
|
|
3603
|
+
"yoda": "error"
|
|
3604
|
+
}
|
|
3605
|
+
});
|
|
3688
3606
|
}
|
|
3689
3607
|
});
|
|
3690
3608
|
|
|
3691
|
-
// node_modules/
|
|
3692
|
-
var
|
|
3693
|
-
"node_modules/
|
|
3609
|
+
// node_modules/@eslint/js/src/configs/eslint-recommended.js
|
|
3610
|
+
var require_eslint_recommended = __commonJS({
|
|
3611
|
+
"node_modules/@eslint/js/src/configs/eslint-recommended.js"(exports2, module2) {
|
|
3694
3612
|
"use strict";
|
|
3695
|
-
module2.exports =
|
|
3613
|
+
module2.exports = Object.freeze({
|
|
3614
|
+
rules: Object.freeze({
|
|
3615
|
+
"constructor-super": "error",
|
|
3616
|
+
"for-direction": "error",
|
|
3617
|
+
"getter-return": "error",
|
|
3618
|
+
"no-async-promise-executor": "error",
|
|
3619
|
+
"no-case-declarations": "error",
|
|
3620
|
+
"no-class-assign": "error",
|
|
3621
|
+
"no-compare-neg-zero": "error",
|
|
3622
|
+
"no-cond-assign": "error",
|
|
3623
|
+
"no-const-assign": "error",
|
|
3624
|
+
"no-constant-binary-expression": "error",
|
|
3625
|
+
"no-constant-condition": "error",
|
|
3626
|
+
"no-control-regex": "error",
|
|
3627
|
+
"no-debugger": "error",
|
|
3628
|
+
"no-delete-var": "error",
|
|
3629
|
+
"no-dupe-args": "error",
|
|
3630
|
+
"no-dupe-class-members": "error",
|
|
3631
|
+
"no-dupe-else-if": "error",
|
|
3632
|
+
"no-dupe-keys": "error",
|
|
3633
|
+
"no-duplicate-case": "error",
|
|
3634
|
+
"no-empty": "error",
|
|
3635
|
+
"no-empty-character-class": "error",
|
|
3636
|
+
"no-empty-pattern": "error",
|
|
3637
|
+
"no-empty-static-block": "error",
|
|
3638
|
+
"no-ex-assign": "error",
|
|
3639
|
+
"no-extra-boolean-cast": "error",
|
|
3640
|
+
"no-fallthrough": "error",
|
|
3641
|
+
"no-func-assign": "error",
|
|
3642
|
+
"no-global-assign": "error",
|
|
3643
|
+
"no-import-assign": "error",
|
|
3644
|
+
"no-invalid-regexp": "error",
|
|
3645
|
+
"no-irregular-whitespace": "error",
|
|
3646
|
+
"no-loss-of-precision": "error",
|
|
3647
|
+
"no-misleading-character-class": "error",
|
|
3648
|
+
"no-new-native-nonconstructor": "error",
|
|
3649
|
+
"no-nonoctal-decimal-escape": "error",
|
|
3650
|
+
"no-obj-calls": "error",
|
|
3651
|
+
"no-octal": "error",
|
|
3652
|
+
"no-prototype-builtins": "error",
|
|
3653
|
+
"no-redeclare": "error",
|
|
3654
|
+
"no-regex-spaces": "error",
|
|
3655
|
+
"no-self-assign": "error",
|
|
3656
|
+
"no-setter-return": "error",
|
|
3657
|
+
"no-shadow-restricted-names": "error",
|
|
3658
|
+
"no-sparse-arrays": "error",
|
|
3659
|
+
"no-this-before-super": "error",
|
|
3660
|
+
"no-undef": "error",
|
|
3661
|
+
"no-unexpected-multiline": "error",
|
|
3662
|
+
"no-unreachable": "error",
|
|
3663
|
+
"no-unsafe-finally": "error",
|
|
3664
|
+
"no-unsafe-negation": "error",
|
|
3665
|
+
"no-unsafe-optional-chaining": "error",
|
|
3666
|
+
"no-unused-labels": "error",
|
|
3667
|
+
"no-unused-private-class-members": "error",
|
|
3668
|
+
"no-unused-vars": "error",
|
|
3669
|
+
"no-useless-backreference": "error",
|
|
3670
|
+
"no-useless-catch": "error",
|
|
3671
|
+
"no-useless-escape": "error",
|
|
3672
|
+
"no-with": "error",
|
|
3673
|
+
"require-yield": "error",
|
|
3674
|
+
"use-isnan": "error",
|
|
3675
|
+
"valid-typeof": "error"
|
|
3676
|
+
})
|
|
3677
|
+
});
|
|
3678
|
+
}
|
|
3679
|
+
});
|
|
3680
|
+
|
|
3681
|
+
// node_modules/@eslint/js/src/index.js
|
|
3682
|
+
var require_src = __commonJS({
|
|
3683
|
+
"node_modules/@eslint/js/src/index.js"(exports2, module2) {
|
|
3684
|
+
"use strict";
|
|
3685
|
+
var { name: name2, version: version2 } = require_package();
|
|
3686
|
+
module2.exports = {
|
|
3687
|
+
meta: {
|
|
3688
|
+
name: name2,
|
|
3689
|
+
version: version2
|
|
3690
|
+
},
|
|
3691
|
+
configs: {
|
|
3692
|
+
all: require_eslint_all(),
|
|
3693
|
+
recommended: require_eslint_recommended()
|
|
3694
|
+
}
|
|
3695
|
+
};
|
|
3696
3696
|
}
|
|
3697
3697
|
});
|
|
3698
3698
|
|
|
@@ -3703,10 +3703,10 @@ __export(index_exports, {
|
|
|
3703
3703
|
prettierRules: () => prettierRules
|
|
3704
3704
|
});
|
|
3705
3705
|
module.exports = __toCommonJS(index_exports);
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
var
|
|
3709
|
-
var
|
|
3706
|
+
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
3707
|
+
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
3708
|
+
var import_eslint_plugin_react_refresh = __toESM(require("eslint-plugin-react-refresh"), 1);
|
|
3709
|
+
var import_globals2 = __toESM(require_globals2(), 1);
|
|
3710
3710
|
|
|
3711
3711
|
// src/create-rule.ts
|
|
3712
3712
|
var import_utils = require("@typescript-eslint/utils");
|
|
@@ -3840,10 +3840,11 @@ var rules_default = {
|
|
|
3840
3840
|
var import_js = __toESM(require_src(), 1);
|
|
3841
3841
|
var import_eslint_plugin = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
|
|
3842
3842
|
var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
|
|
3843
|
-
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
3844
|
-
var import_globals = __toESM(require_globals2(), 1);
|
|
3845
3843
|
var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
|
|
3844
|
+
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
3846
3845
|
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
3846
|
+
var import_eslint_plugin_simple_import_sort = __toESM(require("eslint-plugin-simple-import-sort"), 1);
|
|
3847
|
+
var import_globals = __toESM(require_globals2(), 1);
|
|
3847
3848
|
var warnOnFixButErrorOnLint = process.env.ESLINT_MODE === "fix" ? "warn" : "error";
|
|
3848
3849
|
var prettierRules = {
|
|
3849
3850
|
printWidth: 100
|
|
@@ -3872,7 +3873,8 @@ var eslint_config_default = [
|
|
|
3872
3873
|
plugins: {
|
|
3873
3874
|
"@typescript-eslint": import_eslint_plugin.default,
|
|
3874
3875
|
import: import_eslint_plugin_import.default,
|
|
3875
|
-
prettier: import_eslint_plugin_prettier.default
|
|
3876
|
+
prettier: import_eslint_plugin_prettier.default,
|
|
3877
|
+
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
3876
3878
|
},
|
|
3877
3879
|
rules: {
|
|
3878
3880
|
"import/no-unresolved": warnOnFixButErrorOnLint,
|
|
@@ -3889,6 +3891,27 @@ var eslint_config_default = [
|
|
|
3889
3891
|
]
|
|
3890
3892
|
}
|
|
3891
3893
|
],
|
|
3894
|
+
"import/order": [
|
|
3895
|
+
warnOnFixButErrorOnLint,
|
|
3896
|
+
{
|
|
3897
|
+
alphabetize: {
|
|
3898
|
+
order: "asc",
|
|
3899
|
+
caseInsensitive: true
|
|
3900
|
+
},
|
|
3901
|
+
groups: ["builtin", "external", "internal"],
|
|
3902
|
+
named: true,
|
|
3903
|
+
pathGroups: [
|
|
3904
|
+
{
|
|
3905
|
+
pattern: "src/**",
|
|
3906
|
+
group: "external",
|
|
3907
|
+
position: "after"
|
|
3908
|
+
}
|
|
3909
|
+
],
|
|
3910
|
+
pathGroupsExcludedImportTypes: ["builtin"],
|
|
3911
|
+
"newlines-between": "always"
|
|
3912
|
+
}
|
|
3913
|
+
],
|
|
3914
|
+
"simple-import-sort/exports": warnOnFixButErrorOnLint,
|
|
3892
3915
|
"@typescript-eslint/no-unused-vars": [
|
|
3893
3916
|
warnOnFixButErrorOnLint,
|
|
3894
3917
|
{
|
|
@@ -3912,11 +3935,11 @@ var eslint_config_default = [
|
|
|
3912
3935
|
}
|
|
3913
3936
|
];
|
|
3914
3937
|
|
|
3938
|
+
// package.json
|
|
3939
|
+
var name = "@alextheman/eslint-plugin";
|
|
3940
|
+
var version = "1.2.11";
|
|
3941
|
+
|
|
3915
3942
|
// src/index.ts
|
|
3916
|
-
var import_globals2 = __toESM(require_globals2(), 1);
|
|
3917
|
-
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
3918
|
-
var import_eslint_plugin_react_refresh = __toESM(require("eslint-plugin-react-refresh"), 1);
|
|
3919
|
-
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
3920
3943
|
var plugin = {
|
|
3921
3944
|
meta: {
|
|
3922
3945
|
name,
|