@nekoyasuii/config 0.1.9 → 0.2.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/{chunk-5cy3qjw4.js → chunk-fkpy6323.js} +438 -324
- package/dist/{chunk-k5zpegn9.js → chunk-kg81mxfa.js} +101 -92
- package/dist/tools/oxlint/config/core/index.d.ts +129 -95
- package/dist/tools/oxlint/config/core/index.js +5 -3
- package/dist/tools/oxlint/config/index.d.ts +105 -196
- package/dist/tools/oxlint/config/index.js +6 -15
- package/dist/tools/oxlint/config/js-plugins/anti-slop.d.ts +47 -0
- package/dist/tools/oxlint/config/js-plugins/github.d.ts +57 -0
- package/dist/tools/oxlint/config/js-plugins/index.d.ts +546 -793
- package/dist/tools/oxlint/config/js-plugins/index.js +1 -3
- package/dist/tools/oxlint/config/js-plugins/lazuee.d.ts +25 -0
- package/dist/tools/oxlint/config/js-plugins/no-comment-slop.d.ts +17 -0
- package/dist/tools/oxlint/config/js-plugins/react-doctor.d.ts +159 -0
- package/dist/tools/oxlint/config/js-plugins/shadcn.d.ts +41 -0
- package/dist/tools/oxlint/config/js-plugins/sonarjs.d.ts +254 -0
- package/dist/tools/oxlint/config/js-plugins/tailwindcss.d.ts +20 -0
- package/dist/tools/oxlint/config/vendors/{tailwind-worker.js → shadcn-tailwind-worker.js} +1 -1
- package/dist/tools/oxlint/config/vendors/shadcn.js +2 -2
- package/dist/tools/shared/route-filenames.d.ts +21 -0
- package/package.json +14 -8
- /package/dist/tools/oxlint/config/vendors/{tailwind-worker.d.ts → shadcn-tailwind-worker.d.ts} +0 -0
|
@@ -12,13 +12,21 @@ var coreConfig2 = defineConfig({
|
|
|
12
12
|
overrides: [
|
|
13
13
|
{
|
|
14
14
|
files: [
|
|
15
|
-
"**/*.{test,spec,test-d,spec-d}.{ts,tsx,js,jsx}",
|
|
16
|
-
"**/__tests__/**/*.{ts,tsx,js,jsx}"
|
|
15
|
+
"**/*.{test,spec,test-d,spec-d}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
|
|
16
|
+
"**/__tests__/**/*.{ts,tsx,js,jsx,mts,cts,mjs,cjs}"
|
|
17
17
|
],
|
|
18
18
|
rules: {
|
|
19
19
|
"no-empty-function": "off",
|
|
20
20
|
"promise/prefer-await-to-then": "off"
|
|
21
21
|
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
files: ["**/*.astro"],
|
|
25
|
+
rules: {
|
|
26
|
+
"import/no-commonjs": "error",
|
|
27
|
+
"no-restricted-globals": ["error", "__dirname", "__filename"],
|
|
28
|
+
"unicorn/prefer-module": "off"
|
|
29
|
+
}
|
|
22
30
|
}
|
|
23
31
|
],
|
|
24
32
|
plugins: ["eslint", "typescript", "unicorn", "oxc", "import", "jsdoc", "node", "promise"],
|
|
@@ -46,7 +54,61 @@ var coreConfig2 = defineConfig({
|
|
|
46
54
|
"id-denylist": "error",
|
|
47
55
|
"id-length": "off",
|
|
48
56
|
"id-match": "error",
|
|
57
|
+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
58
|
+
"import/default": "error",
|
|
59
|
+
"import/exports-last": "off",
|
|
60
|
+
"import/extensions": "off",
|
|
61
|
+
"import/first": "error",
|
|
62
|
+
"import/group-exports": "off",
|
|
63
|
+
"import/max-dependencies": "off",
|
|
64
|
+
"import/namespace": "error",
|
|
65
|
+
"import/newline-after-import": "error",
|
|
66
|
+
"import/no-absolute-path": "error",
|
|
67
|
+
"import/no-amd": "error",
|
|
68
|
+
"import/no-anonymous-default-export": "off",
|
|
69
|
+
"import/no-commonjs": "off",
|
|
70
|
+
"import/no-cycle": "error",
|
|
71
|
+
"import/no-default-export": "off",
|
|
72
|
+
"import/no-duplicates": "error",
|
|
73
|
+
"import/no-dynamic-require": "off",
|
|
74
|
+
"import/no-empty-named-blocks": "error",
|
|
75
|
+
"import/no-mutable-exports": "error",
|
|
76
|
+
"import/no-named-as-default": "error",
|
|
77
|
+
"import/no-named-as-default-member": "error",
|
|
78
|
+
"import/no-named-default": "error",
|
|
79
|
+
"import/no-named-export": "off",
|
|
80
|
+
"import/no-namespace": "off",
|
|
81
|
+
"import/no-nodejs-modules": "off",
|
|
82
|
+
"import/no-relative-parent-imports": "off",
|
|
83
|
+
"import/no-self-import": "error",
|
|
84
|
+
"import/no-unassigned-import": "off",
|
|
85
|
+
"import/no-webpack-loader-syntax": "error",
|
|
86
|
+
"import/prefer-default-export": "off",
|
|
87
|
+
"import/unambiguous": "off",
|
|
49
88
|
"init-declarations": "off",
|
|
89
|
+
"jsdoc/check-access": "error",
|
|
90
|
+
"jsdoc/check-property-names": "error",
|
|
91
|
+
"jsdoc/check-tag-names": "error",
|
|
92
|
+
"jsdoc/empty-tags": "error",
|
|
93
|
+
"jsdoc/implements-on-classes": "error",
|
|
94
|
+
"jsdoc/no-blank-blocks": "error",
|
|
95
|
+
"jsdoc/no-defaults": "error",
|
|
96
|
+
"jsdoc/require-param": "off",
|
|
97
|
+
"jsdoc/require-param-description": "error",
|
|
98
|
+
"jsdoc/require-param-name": "error",
|
|
99
|
+
"jsdoc/require-param-type": "off",
|
|
100
|
+
"jsdoc/require-property": "error",
|
|
101
|
+
"jsdoc/require-property-description": "error",
|
|
102
|
+
"jsdoc/require-property-name": "error",
|
|
103
|
+
"jsdoc/require-property-type": "error",
|
|
104
|
+
"jsdoc/require-returns": "off",
|
|
105
|
+
"jsdoc/require-returns-description": "error",
|
|
106
|
+
"jsdoc/require-returns-type": "off",
|
|
107
|
+
"jsdoc/require-throws-description": "error",
|
|
108
|
+
"jsdoc/require-throws-type": "error",
|
|
109
|
+
"jsdoc/require-yields": "error",
|
|
110
|
+
"jsdoc/require-yields-description": "error",
|
|
111
|
+
"jsdoc/require-yields-type": "error",
|
|
50
112
|
"logical-assignment-operators": "error",
|
|
51
113
|
"max-classes-per-file": "error",
|
|
52
114
|
"max-depth": "off",
|
|
@@ -66,10 +128,10 @@ var coreConfig2 = defineConfig({
|
|
|
66
128
|
"no-class-assign": "error",
|
|
67
129
|
"no-compare-neg-zero": "error",
|
|
68
130
|
"no-cond-assign": "error",
|
|
131
|
+
"no-console": "off",
|
|
69
132
|
"no-const-assign": "error",
|
|
70
133
|
"no-constant-binary-expression": "error",
|
|
71
134
|
"no-constant-condition": "error",
|
|
72
|
-
"no-console": "off",
|
|
73
135
|
"no-constructor-return": "error",
|
|
74
136
|
"no-continue": "off",
|
|
75
137
|
"no-control-regex": "error",
|
|
@@ -177,90 +239,6 @@ var coreConfig2 = defineConfig({
|
|
|
177
239
|
"no-void": ["error", { allowAsStatement: true }],
|
|
178
240
|
"no-warning-comments": "error",
|
|
179
241
|
"no-with": "error",
|
|
180
|
-
"object-shorthand": "error",
|
|
181
|
-
"one-var": ["error", "never"],
|
|
182
|
-
"operator-assignment": "error",
|
|
183
|
-
"prefer-arrow-callback": "error",
|
|
184
|
-
"prefer-const": "error",
|
|
185
|
-
"prefer-destructuring": "error",
|
|
186
|
-
"prefer-exponentiation-operator": "error",
|
|
187
|
-
"prefer-named-capture-group": "error",
|
|
188
|
-
"prefer-numeric-literals": "error",
|
|
189
|
-
"prefer-object-has-own": "error",
|
|
190
|
-
"prefer-object-spread": "error",
|
|
191
|
-
"prefer-promise-reject-errors": "error",
|
|
192
|
-
"prefer-regex-literals": "error",
|
|
193
|
-
"prefer-rest-params": "error",
|
|
194
|
-
"prefer-spread": "error",
|
|
195
|
-
"prefer-template": "error",
|
|
196
|
-
"preserve-caught-error": "error",
|
|
197
|
-
radix: "error",
|
|
198
|
-
"require-await": "error",
|
|
199
|
-
"require-unicode-regexp": "error",
|
|
200
|
-
"require-yield": "error",
|
|
201
|
-
"sort-imports": "off",
|
|
202
|
-
"sort-keys": "off",
|
|
203
|
-
"sort-vars": "error",
|
|
204
|
-
"symbol-description": "error",
|
|
205
|
-
"unicode-bom": "error",
|
|
206
|
-
"use-isnan": "error",
|
|
207
|
-
"valid-typeof": "error",
|
|
208
|
-
"vars-on-top": "error",
|
|
209
|
-
yoda: "error",
|
|
210
|
-
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
211
|
-
"import/default": "error",
|
|
212
|
-
"import/exports-last": "off",
|
|
213
|
-
"import/extensions": "off",
|
|
214
|
-
"import/first": "error",
|
|
215
|
-
"import/group-exports": "off",
|
|
216
|
-
"import/max-dependencies": "off",
|
|
217
|
-
"import/namespace": "error",
|
|
218
|
-
"import/newline-after-import": "error",
|
|
219
|
-
"import/no-absolute-path": "error",
|
|
220
|
-
"import/no-amd": "error",
|
|
221
|
-
"import/no-anonymous-default-export": "off",
|
|
222
|
-
"import/no-commonjs": "off",
|
|
223
|
-
"import/no-cycle": "error",
|
|
224
|
-
"import/no-default-export": "off",
|
|
225
|
-
"import/no-duplicates": "error",
|
|
226
|
-
"import/no-dynamic-require": "off",
|
|
227
|
-
"import/no-empty-named-blocks": "error",
|
|
228
|
-
"import/no-mutable-exports": "error",
|
|
229
|
-
"import/no-named-as-default": "error",
|
|
230
|
-
"import/no-named-as-default-member": "error",
|
|
231
|
-
"import/no-named-default": "error",
|
|
232
|
-
"import/no-named-export": "off",
|
|
233
|
-
"import/no-namespace": "off",
|
|
234
|
-
"import/no-nodejs-modules": "off",
|
|
235
|
-
"import/no-relative-parent-imports": "off",
|
|
236
|
-
"import/no-self-import": "error",
|
|
237
|
-
"import/no-unassigned-import": "off",
|
|
238
|
-
"import/no-webpack-loader-syntax": "error",
|
|
239
|
-
"import/prefer-default-export": "off",
|
|
240
|
-
"import/unambiguous": "off",
|
|
241
|
-
"jsdoc/check-access": "error",
|
|
242
|
-
"jsdoc/check-property-names": "error",
|
|
243
|
-
"jsdoc/check-tag-names": "error",
|
|
244
|
-
"jsdoc/empty-tags": "error",
|
|
245
|
-
"jsdoc/implements-on-classes": "error",
|
|
246
|
-
"jsdoc/no-blank-blocks": "error",
|
|
247
|
-
"jsdoc/no-defaults": "error",
|
|
248
|
-
"jsdoc/require-param": "off",
|
|
249
|
-
"jsdoc/require-param-description": "error",
|
|
250
|
-
"jsdoc/require-param-name": "error",
|
|
251
|
-
"jsdoc/require-param-type": "off",
|
|
252
|
-
"jsdoc/require-property": "error",
|
|
253
|
-
"jsdoc/require-property-description": "error",
|
|
254
|
-
"jsdoc/require-property-name": "error",
|
|
255
|
-
"jsdoc/require-property-type": "error",
|
|
256
|
-
"jsdoc/require-returns": "off",
|
|
257
|
-
"jsdoc/require-returns-description": "error",
|
|
258
|
-
"jsdoc/require-returns-type": "off",
|
|
259
|
-
"jsdoc/require-throws-description": "error",
|
|
260
|
-
"jsdoc/require-throws-type": "error",
|
|
261
|
-
"jsdoc/require-yields": "error",
|
|
262
|
-
"jsdoc/require-yields-description": "error",
|
|
263
|
-
"jsdoc/require-yields-type": "error",
|
|
264
242
|
"node/callback-return": "error",
|
|
265
243
|
"node/exports-style": "error",
|
|
266
244
|
"node/global-require": "error",
|
|
@@ -272,6 +250,9 @@ var coreConfig2 = defineConfig({
|
|
|
272
250
|
"node/no-process-env": "off",
|
|
273
251
|
"node/no-sync": "off",
|
|
274
252
|
"node/no-top-level-await": "off",
|
|
253
|
+
"object-shorthand": "error",
|
|
254
|
+
"one-var": ["error", "never"],
|
|
255
|
+
"operator-assignment": "error",
|
|
275
256
|
"oxc/approx-constant": "error",
|
|
276
257
|
"oxc/bad-array-method-on-arguments": "error",
|
|
277
258
|
"oxc/bad-bitwise-operator": "error",
|
|
@@ -299,6 +280,20 @@ var coreConfig2 = defineConfig({
|
|
|
299
280
|
"oxc/number-arg-out-of-range": "error",
|
|
300
281
|
"oxc/only-used-in-recursion": "error",
|
|
301
282
|
"oxc/uninvoked-array-callback": "error",
|
|
283
|
+
"prefer-arrow-callback": "error",
|
|
284
|
+
"prefer-const": "error",
|
|
285
|
+
"prefer-destructuring": "error",
|
|
286
|
+
"prefer-exponentiation-operator": "error",
|
|
287
|
+
"prefer-named-capture-group": "error",
|
|
288
|
+
"prefer-numeric-literals": "error",
|
|
289
|
+
"prefer-object-has-own": "error",
|
|
290
|
+
"prefer-object-spread": "error",
|
|
291
|
+
"prefer-promise-reject-errors": "error",
|
|
292
|
+
"prefer-regex-literals": "error",
|
|
293
|
+
"prefer-rest-params": "error",
|
|
294
|
+
"prefer-spread": "error",
|
|
295
|
+
"prefer-template": "error",
|
|
296
|
+
"preserve-caught-error": "error",
|
|
302
297
|
"promise/always-return": "off",
|
|
303
298
|
"promise/avoid-new": "error",
|
|
304
299
|
"promise/catch-or-return": "off",
|
|
@@ -314,6 +309,14 @@ var coreConfig2 = defineConfig({
|
|
|
314
309
|
"promise/prefer-catch": "error",
|
|
315
310
|
"promise/spec-only": "error",
|
|
316
311
|
"promise/valid-params": "error",
|
|
312
|
+
radix: "error",
|
|
313
|
+
"require-await": "error",
|
|
314
|
+
"require-unicode-regexp": "error",
|
|
315
|
+
"require-yield": "error",
|
|
316
|
+
"sort-imports": "off",
|
|
317
|
+
"sort-keys": "off",
|
|
318
|
+
"sort-vars": "error",
|
|
319
|
+
"symbol-description": "error",
|
|
317
320
|
"typescript/adjacent-overload-signatures": "error",
|
|
318
321
|
"typescript/array-type": "error",
|
|
319
322
|
"typescript/await-thenable": "error",
|
|
@@ -367,12 +370,12 @@ var coreConfig2 = defineConfig({
|
|
|
367
370
|
"typescript/no-this-alias": "error",
|
|
368
371
|
"typescript/no-unnecessary-boolean-literal-compare": "error",
|
|
369
372
|
"typescript/no-unnecessary-parameter-property-assignment": "error",
|
|
373
|
+
"typescript/no-unnecessary-qualifier": "error",
|
|
370
374
|
"typescript/no-unnecessary-template-expression": "error",
|
|
371
375
|
"typescript/no-unnecessary-type-arguments": "error",
|
|
372
376
|
"typescript/no-unnecessary-type-assertion": "error",
|
|
373
377
|
"typescript/no-unnecessary-type-constraint": "error",
|
|
374
378
|
"typescript/no-unnecessary-type-conversion": "error",
|
|
375
|
-
"typescript/no-unnecessary-qualifier": "error",
|
|
376
379
|
"typescript/no-unnecessary-type-parameters": "error",
|
|
377
380
|
"typescript/no-unsafe-argument": "error",
|
|
378
381
|
"typescript/no-unsafe-assignment": "error",
|
|
@@ -422,13 +425,14 @@ var coreConfig2 = defineConfig({
|
|
|
422
425
|
"typescript/unbound-method": "error",
|
|
423
426
|
"typescript/unified-signatures": "error",
|
|
424
427
|
"typescript/use-unknown-in-catch-callback-variable": "error",
|
|
425
|
-
"
|
|
428
|
+
"unicode-bom": "error",
|
|
426
429
|
"unicorn/catch-error-name": "error",
|
|
427
430
|
"unicorn/consistent-assert": "error",
|
|
428
431
|
"unicorn/consistent-date-clone": "error",
|
|
429
432
|
"unicorn/consistent-empty-array-spread": "error",
|
|
430
433
|
"unicorn/consistent-existence-index-check": "error",
|
|
431
434
|
"unicorn/consistent-function-scoping": "error",
|
|
435
|
+
"unicorn/consistent-template-literal-escape": "error",
|
|
432
436
|
"unicorn/custom-error-definition": "error",
|
|
433
437
|
"unicorn/empty-brace-spaces": "error",
|
|
434
438
|
"unicorn/error-message": "error",
|
|
@@ -466,7 +470,7 @@ var coreConfig2 = defineConfig({
|
|
|
466
470
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
467
471
|
"unicorn/no-negated-condition": "error",
|
|
468
472
|
"unicorn/no-negation-in-equality-check": "error",
|
|
469
|
-
"unicorn/no-nested-ternary": "
|
|
473
|
+
"unicorn/no-nested-ternary": "off",
|
|
470
474
|
"unicorn/no-new-array": "error",
|
|
471
475
|
"unicorn/no-new-buffer": "error",
|
|
472
476
|
"unicorn/no-null": "off",
|
|
@@ -558,8 +562,13 @@ var coreConfig2 = defineConfig({
|
|
|
558
562
|
"unicorn/switch-case-braces": "error",
|
|
559
563
|
"unicorn/switch-case-break-position": "error",
|
|
560
564
|
"unicorn/text-encoding-identifier-case": ["error", { withDash: true }],
|
|
561
|
-
"unicorn/throw-new-error": "error"
|
|
565
|
+
"unicorn/throw-new-error": "error",
|
|
566
|
+
"use-isnan": "error",
|
|
567
|
+
"valid-typeof": "error",
|
|
568
|
+
"vars-on-top": "error",
|
|
569
|
+
yoda: "error"
|
|
562
570
|
}
|
|
563
571
|
});
|
|
572
|
+
var core_default = coreConfig2;
|
|
564
573
|
|
|
565
|
-
export { coreConfig2 };
|
|
574
|
+
export { coreConfig2, core_default };
|
|
@@ -3,7 +3,7 @@ export declare const coreConfig: {
|
|
|
3
3
|
browser: true;
|
|
4
4
|
};
|
|
5
5
|
ignorePatterns: string[];
|
|
6
|
-
overrides: {
|
|
6
|
+
overrides: ({
|
|
7
7
|
/**
|
|
8
8
|
* Shared test file overrides: framework-specific test rules
|
|
9
9
|
* are in separate jest/ and vitest/ configs to avoid conflicts
|
|
@@ -12,8 +12,26 @@ export declare const coreConfig: {
|
|
|
12
12
|
rules: {
|
|
13
13
|
"no-empty-function": "off";
|
|
14
14
|
"promise/prefer-await-to-then": "off";
|
|
15
|
+
"import/no-commonjs"?: undefined;
|
|
16
|
+
"no-restricted-globals"?: undefined;
|
|
17
|
+
"unicorn/prefer-module"?: undefined;
|
|
15
18
|
};
|
|
16
|
-
}
|
|
19
|
+
} | {
|
|
20
|
+
/**
|
|
21
|
+
* Astro compiles frontmatter into the page's server-side render
|
|
22
|
+
* function, so a top-level `return` is valid there (#805). The rule
|
|
23
|
+
* has no options to allow only `return`, so turn it off and keep the
|
|
24
|
+
* CommonJS checks it also covered via rules that do take options
|
|
25
|
+
*/
|
|
26
|
+
files: string[];
|
|
27
|
+
rules: {
|
|
28
|
+
"no-empty-function"?: undefined;
|
|
29
|
+
"promise/prefer-await-to-then"?: undefined;
|
|
30
|
+
"import/no-commonjs": "error";
|
|
31
|
+
"no-restricted-globals": ["error", string, string];
|
|
32
|
+
"unicorn/prefer-module": "off";
|
|
33
|
+
};
|
|
34
|
+
})[];
|
|
17
35
|
plugins: ("eslint" | "import" | "jsdoc" | "node" | "oxc" | "promise" | "typescript" | "unicorn")[];
|
|
18
36
|
rules: {
|
|
19
37
|
/** ── eslint ────────────────────────────────────────────────────────── */
|
|
@@ -40,7 +58,63 @@ export declare const coreConfig: {
|
|
|
40
58
|
"id-denylist": "error";
|
|
41
59
|
"id-length": "off";
|
|
42
60
|
"id-match": "error";
|
|
61
|
+
/** ── import ───────────────────────────────────────────────────────── */
|
|
62
|
+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"];
|
|
63
|
+
"import/default": "error";
|
|
64
|
+
"import/exports-last": "off";
|
|
65
|
+
"import/extensions": "off";
|
|
66
|
+
"import/first": "error";
|
|
67
|
+
"import/group-exports": "off";
|
|
68
|
+
"import/max-dependencies": "off";
|
|
69
|
+
"import/namespace": "error";
|
|
70
|
+
"import/newline-after-import": "error";
|
|
71
|
+
"import/no-absolute-path": "error";
|
|
72
|
+
"import/no-amd": "error";
|
|
73
|
+
"import/no-anonymous-default-export": "off";
|
|
74
|
+
"import/no-commonjs": "off";
|
|
75
|
+
"import/no-cycle": "error";
|
|
76
|
+
"import/no-default-export": "off";
|
|
77
|
+
"import/no-duplicates": "error";
|
|
78
|
+
"import/no-dynamic-require": "off";
|
|
79
|
+
"import/no-empty-named-blocks": "error";
|
|
80
|
+
"import/no-mutable-exports": "error";
|
|
81
|
+
"import/no-named-as-default": "error";
|
|
82
|
+
"import/no-named-as-default-member": "error";
|
|
83
|
+
"import/no-named-default": "error";
|
|
84
|
+
"import/no-named-export": "off";
|
|
85
|
+
"import/no-namespace": "off";
|
|
86
|
+
"import/no-nodejs-modules": "off";
|
|
87
|
+
"import/no-relative-parent-imports": "off";
|
|
88
|
+
"import/no-self-import": "error";
|
|
89
|
+
"import/no-unassigned-import": "off";
|
|
90
|
+
"import/no-webpack-loader-syntax": "error";
|
|
91
|
+
"import/prefer-default-export": "off";
|
|
92
|
+
"import/unambiguous": "off";
|
|
43
93
|
"init-declarations": "off";
|
|
94
|
+
/** ── jsdoc ────────────────────────────────────────────────────────── */
|
|
95
|
+
"jsdoc/check-access": "error";
|
|
96
|
+
"jsdoc/check-property-names": "error";
|
|
97
|
+
"jsdoc/check-tag-names": "error";
|
|
98
|
+
"jsdoc/empty-tags": "error";
|
|
99
|
+
"jsdoc/implements-on-classes": "error";
|
|
100
|
+
"jsdoc/no-blank-blocks": "error";
|
|
101
|
+
"jsdoc/no-defaults": "error";
|
|
102
|
+
"jsdoc/require-param": "off";
|
|
103
|
+
"jsdoc/require-param-description": "error";
|
|
104
|
+
"jsdoc/require-param-name": "error";
|
|
105
|
+
"jsdoc/require-param-type": "off";
|
|
106
|
+
"jsdoc/require-property": "error";
|
|
107
|
+
"jsdoc/require-property-description": "error";
|
|
108
|
+
"jsdoc/require-property-name": "error";
|
|
109
|
+
"jsdoc/require-property-type": "error";
|
|
110
|
+
"jsdoc/require-returns": "off";
|
|
111
|
+
"jsdoc/require-returns-description": "error";
|
|
112
|
+
"jsdoc/require-returns-type": "off";
|
|
113
|
+
"jsdoc/require-throws-description": "error";
|
|
114
|
+
"jsdoc/require-throws-type": "error";
|
|
115
|
+
"jsdoc/require-yields": "error";
|
|
116
|
+
"jsdoc/require-yields-description": "error";
|
|
117
|
+
"jsdoc/require-yields-type": "error";
|
|
44
118
|
"logical-assignment-operators": "error";
|
|
45
119
|
"max-classes-per-file": "error";
|
|
46
120
|
"max-depth": "off";
|
|
@@ -60,10 +134,10 @@ export declare const coreConfig: {
|
|
|
60
134
|
"no-class-assign": "error";
|
|
61
135
|
"no-compare-neg-zero": "error";
|
|
62
136
|
"no-cond-assign": "error";
|
|
137
|
+
"no-console": "off";
|
|
63
138
|
"no-const-assign": "error";
|
|
64
139
|
"no-constant-binary-expression": "error";
|
|
65
140
|
"no-constant-condition": "error";
|
|
66
|
-
"no-console": "off";
|
|
67
141
|
"no-constructor-return": "error";
|
|
68
142
|
"no-continue": "off";
|
|
69
143
|
"no-control-regex": "error";
|
|
@@ -148,9 +222,18 @@ export declare const coreConfig: {
|
|
|
148
222
|
"no-undefined": "off";
|
|
149
223
|
"no-underscore-dangle": "off";
|
|
150
224
|
"no-unexpected-multiline": "error";
|
|
225
|
+
/**
|
|
226
|
+
* Each branch of a ternary in a loop condition must be modified inside
|
|
227
|
+
* the loop, not just the expression as a whole
|
|
228
|
+
*/
|
|
151
229
|
"no-unmodified-loop-condition": "error";
|
|
152
230
|
"no-unneeded-ternary": "error";
|
|
153
231
|
"no-unreachable": "error";
|
|
232
|
+
/**
|
|
233
|
+
* A nursery rule in oxlint, enabled deliberately (the non-nursery
|
|
234
|
+
* coverage test does not require it); ESLint's no-unreachable-loop is on
|
|
235
|
+
* too
|
|
236
|
+
*/
|
|
154
237
|
"no-unreachable-loop": "error";
|
|
155
238
|
"no-unsafe-finally": "error";
|
|
156
239
|
"no-unsafe-negation": "error";
|
|
@@ -176,93 +259,6 @@ export declare const coreConfig: {
|
|
|
176
259
|
}];
|
|
177
260
|
"no-warning-comments": "error";
|
|
178
261
|
"no-with": "error";
|
|
179
|
-
"object-shorthand": "error";
|
|
180
|
-
"one-var": ["error", "never"];
|
|
181
|
-
"operator-assignment": "error";
|
|
182
|
-
"prefer-arrow-callback": "error";
|
|
183
|
-
"prefer-const": "error";
|
|
184
|
-
"prefer-destructuring": "error";
|
|
185
|
-
"prefer-exponentiation-operator": "error";
|
|
186
|
-
"prefer-named-capture-group": "error";
|
|
187
|
-
"prefer-numeric-literals": "error";
|
|
188
|
-
"prefer-object-has-own": "error";
|
|
189
|
-
"prefer-object-spread": "error";
|
|
190
|
-
"prefer-promise-reject-errors": "error";
|
|
191
|
-
"prefer-regex-literals": "error";
|
|
192
|
-
"prefer-rest-params": "error";
|
|
193
|
-
"prefer-spread": "error";
|
|
194
|
-
"prefer-template": "error";
|
|
195
|
-
"preserve-caught-error": "error";
|
|
196
|
-
radix: "error";
|
|
197
|
-
"require-await": "error";
|
|
198
|
-
"require-unicode-regexp": "error";
|
|
199
|
-
"require-yield": "error";
|
|
200
|
-
/** Rely on oxfmt `experimentalSortImports` instead */
|
|
201
|
-
"sort-imports": "off";
|
|
202
|
-
"sort-keys": "off";
|
|
203
|
-
"sort-vars": "error";
|
|
204
|
-
"symbol-description": "error";
|
|
205
|
-
"unicode-bom": "error";
|
|
206
|
-
"use-isnan": "error";
|
|
207
|
-
"valid-typeof": "error";
|
|
208
|
-
"vars-on-top": "error";
|
|
209
|
-
yoda: "error";
|
|
210
|
-
/** ── import ───────────────────────────────────────────────────────── */
|
|
211
|
-
"import/consistent-type-specifier-style": ["error", "prefer-top-level"];
|
|
212
|
-
"import/default": "error";
|
|
213
|
-
"import/exports-last": "off";
|
|
214
|
-
"import/extensions": "off";
|
|
215
|
-
"import/first": "error";
|
|
216
|
-
"import/group-exports": "off";
|
|
217
|
-
"import/max-dependencies": "off";
|
|
218
|
-
"import/namespace": "error";
|
|
219
|
-
"import/newline-after-import": "error";
|
|
220
|
-
"import/no-absolute-path": "error";
|
|
221
|
-
"import/no-amd": "error";
|
|
222
|
-
"import/no-anonymous-default-export": "off";
|
|
223
|
-
"import/no-commonjs": "off";
|
|
224
|
-
"import/no-cycle": "error";
|
|
225
|
-
"import/no-default-export": "off";
|
|
226
|
-
"import/no-duplicates": "error";
|
|
227
|
-
"import/no-dynamic-require": "off";
|
|
228
|
-
"import/no-empty-named-blocks": "error";
|
|
229
|
-
"import/no-mutable-exports": "error";
|
|
230
|
-
"import/no-named-as-default": "error";
|
|
231
|
-
"import/no-named-as-default-member": "error";
|
|
232
|
-
"import/no-named-default": "error";
|
|
233
|
-
"import/no-named-export": "off";
|
|
234
|
-
"import/no-namespace": "off";
|
|
235
|
-
"import/no-nodejs-modules": "off";
|
|
236
|
-
"import/no-relative-parent-imports": "off";
|
|
237
|
-
"import/no-self-import": "error";
|
|
238
|
-
"import/no-unassigned-import": "off";
|
|
239
|
-
"import/no-webpack-loader-syntax": "error";
|
|
240
|
-
"import/prefer-default-export": "off";
|
|
241
|
-
"import/unambiguous": "off";
|
|
242
|
-
/** ── jsdoc ────────────────────────────────────────────────────────── */
|
|
243
|
-
"jsdoc/check-access": "error";
|
|
244
|
-
"jsdoc/check-property-names": "error";
|
|
245
|
-
"jsdoc/check-tag-names": "error";
|
|
246
|
-
"jsdoc/empty-tags": "error";
|
|
247
|
-
"jsdoc/implements-on-classes": "error";
|
|
248
|
-
"jsdoc/no-blank-blocks": "error";
|
|
249
|
-
"jsdoc/no-defaults": "error";
|
|
250
|
-
"jsdoc/require-param": "off";
|
|
251
|
-
"jsdoc/require-param-description": "error";
|
|
252
|
-
"jsdoc/require-param-name": "error";
|
|
253
|
-
"jsdoc/require-param-type": "off";
|
|
254
|
-
"jsdoc/require-property": "error";
|
|
255
|
-
"jsdoc/require-property-description": "error";
|
|
256
|
-
"jsdoc/require-property-name": "error";
|
|
257
|
-
"jsdoc/require-property-type": "error";
|
|
258
|
-
"jsdoc/require-returns": "off";
|
|
259
|
-
"jsdoc/require-returns-description": "error";
|
|
260
|
-
"jsdoc/require-returns-type": "off";
|
|
261
|
-
"jsdoc/require-throws-description": "error";
|
|
262
|
-
"jsdoc/require-throws-type": "error";
|
|
263
|
-
"jsdoc/require-yields": "error";
|
|
264
|
-
"jsdoc/require-yields-description": "error";
|
|
265
|
-
"jsdoc/require-yields-type": "error";
|
|
266
262
|
/** ── node ─────────────────────────────────────────────────────────── */
|
|
267
263
|
"node/callback-return": "error";
|
|
268
264
|
"node/exports-style": "error";
|
|
@@ -275,10 +271,13 @@ export declare const coreConfig: {
|
|
|
275
271
|
"node/no-process-env": "off";
|
|
276
272
|
"node/no-sync": "off";
|
|
277
273
|
/**
|
|
278
|
-
* Top-level await is idiomatic in ESM
|
|
274
|
+
* Top-level await is idiomatic in ESM. Astro frontmatter, build
|
|
279
275
|
* scripts, and CLI entry points all rely on it
|
|
280
276
|
*/
|
|
281
277
|
"node/no-top-level-await": "off";
|
|
278
|
+
"object-shorthand": "error";
|
|
279
|
+
"one-var": ["error", "never"];
|
|
280
|
+
"operator-assignment": "error";
|
|
282
281
|
/** ── oxc ──────────────────────────────────────────────────────────── */
|
|
283
282
|
"oxc/approx-constant": "error";
|
|
284
283
|
"oxc/bad-array-method-on-arguments": "error";
|
|
@@ -307,6 +306,20 @@ export declare const coreConfig: {
|
|
|
307
306
|
"oxc/number-arg-out-of-range": "error";
|
|
308
307
|
"oxc/only-used-in-recursion": "error";
|
|
309
308
|
"oxc/uninvoked-array-callback": "error";
|
|
309
|
+
"prefer-arrow-callback": "error";
|
|
310
|
+
"prefer-const": "error";
|
|
311
|
+
"prefer-destructuring": "error";
|
|
312
|
+
"prefer-exponentiation-operator": "error";
|
|
313
|
+
"prefer-named-capture-group": "error";
|
|
314
|
+
"prefer-numeric-literals": "error";
|
|
315
|
+
"prefer-object-has-own": "error";
|
|
316
|
+
"prefer-object-spread": "error";
|
|
317
|
+
"prefer-promise-reject-errors": "error";
|
|
318
|
+
"prefer-regex-literals": "error";
|
|
319
|
+
"prefer-rest-params": "error";
|
|
320
|
+
"prefer-spread": "error";
|
|
321
|
+
"prefer-template": "error";
|
|
322
|
+
"preserve-caught-error": "error";
|
|
310
323
|
/** ── promise ──────────────────────────────────────────────────────── */
|
|
311
324
|
"promise/always-return": "off";
|
|
312
325
|
"promise/avoid-new": "error";
|
|
@@ -323,6 +336,16 @@ export declare const coreConfig: {
|
|
|
323
336
|
"promise/prefer-catch": "error";
|
|
324
337
|
"promise/spec-only": "error";
|
|
325
338
|
"promise/valid-params": "error";
|
|
339
|
+
radix: "error";
|
|
340
|
+
"require-await": "error";
|
|
341
|
+
"require-unicode-regexp": "error";
|
|
342
|
+
"require-yield": "error";
|
|
343
|
+
/** Rely on oxfmt `sortImports` instead */
|
|
344
|
+
"sort-imports": "off";
|
|
345
|
+
/** Don't sort object keys */
|
|
346
|
+
"sort-keys": "off";
|
|
347
|
+
"sort-vars": "error";
|
|
348
|
+
"symbol-description": "error";
|
|
326
349
|
/** ── typescript ───────────────────────────────────────────────────── */
|
|
327
350
|
"typescript/adjacent-overload-signatures": "error";
|
|
328
351
|
"typescript/array-type": "error";
|
|
@@ -377,12 +400,12 @@ export declare const coreConfig: {
|
|
|
377
400
|
"typescript/no-this-alias": "error";
|
|
378
401
|
"typescript/no-unnecessary-boolean-literal-compare": "error";
|
|
379
402
|
"typescript/no-unnecessary-parameter-property-assignment": "error";
|
|
403
|
+
"typescript/no-unnecessary-qualifier": "error";
|
|
380
404
|
"typescript/no-unnecessary-template-expression": "error";
|
|
381
405
|
"typescript/no-unnecessary-type-arguments": "error";
|
|
382
406
|
"typescript/no-unnecessary-type-assertion": "error";
|
|
383
407
|
"typescript/no-unnecessary-type-constraint": "error";
|
|
384
408
|
"typescript/no-unnecessary-type-conversion": "error";
|
|
385
|
-
"typescript/no-unnecessary-qualifier": "error";
|
|
386
409
|
"typescript/no-unnecessary-type-parameters": "error";
|
|
387
410
|
"typescript/no-unsafe-argument": "error";
|
|
388
411
|
"typescript/no-unsafe-assignment": "error";
|
|
@@ -432,14 +455,15 @@ export declare const coreConfig: {
|
|
|
432
455
|
"typescript/unbound-method": "error";
|
|
433
456
|
"typescript/unified-signatures": "error";
|
|
434
457
|
"typescript/use-unknown-in-catch-callback-variable": "error";
|
|
435
|
-
|
|
436
|
-
"unicorn/consistent-template-literal-escape": "error";
|
|
458
|
+
"unicode-bom": "error";
|
|
437
459
|
"unicorn/catch-error-name": "error";
|
|
438
460
|
"unicorn/consistent-assert": "error";
|
|
439
461
|
"unicorn/consistent-date-clone": "error";
|
|
440
462
|
"unicorn/consistent-empty-array-spread": "error";
|
|
441
463
|
"unicorn/consistent-existence-index-check": "error";
|
|
442
464
|
"unicorn/consistent-function-scoping": "error";
|
|
465
|
+
/** ── unicorn ──────────────────────────────────────────────────────── */
|
|
466
|
+
"unicorn/consistent-template-literal-escape": "error";
|
|
443
467
|
"unicorn/custom-error-definition": "error";
|
|
444
468
|
"unicorn/empty-brace-spaces": "error";
|
|
445
469
|
"unicorn/error-message": "error";
|
|
@@ -477,7 +501,12 @@ export declare const coreConfig: {
|
|
|
477
501
|
"unicorn/no-magic-array-flat-depth": "error";
|
|
478
502
|
"unicorn/no-negated-condition": "error";
|
|
479
503
|
"unicorn/no-negation-in-equality-check": "error";
|
|
480
|
-
|
|
504
|
+
/**
|
|
505
|
+
* Its fixer wraps the inner ternary in parentheses that oxfmt strips, so
|
|
506
|
+
* every `fix` run ping-pongs. eslint-config-prettier disables it for the
|
|
507
|
+
* same reason; the core `no-nested-ternary` still reports the construct.
|
|
508
|
+
*/
|
|
509
|
+
"unicorn/no-nested-ternary": "off";
|
|
481
510
|
"unicorn/no-new-array": "error";
|
|
482
511
|
"unicorn/no-new-buffer": "error";
|
|
483
512
|
"unicorn/no-null": "off";
|
|
@@ -573,5 +602,10 @@ export declare const coreConfig: {
|
|
|
573
602
|
withDash: true;
|
|
574
603
|
}];
|
|
575
604
|
"unicorn/throw-new-error": "error";
|
|
605
|
+
"use-isnan": "error";
|
|
606
|
+
"valid-typeof": "error";
|
|
607
|
+
"vars-on-top": "error";
|
|
608
|
+
yoda: "error";
|
|
576
609
|
};
|
|
577
610
|
};
|
|
611
|
+
export default coreConfig;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
coreConfig2
|
|
3
|
-
|
|
2
|
+
coreConfig2,
|
|
3
|
+
core_default
|
|
4
|
+
} from "../../../../chunk-kg81mxfa.js";
|
|
4
5
|
import"../../../../chunk-tvk9tq03.js";
|
|
5
6
|
export {
|
|
6
|
-
coreConfig2 as coreConfig
|
|
7
|
+
coreConfig2 as coreConfig,
|
|
8
|
+
core_default as default
|
|
7
9
|
};
|