@isentinel/eslint-config 6.0.0-beta.15 → 6.0.0-beta.17
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/README.md +10 -0
- package/dist/cli.mjs +32 -10
- package/dist/index.d.mts +110 -11
- package/dist/index.mjs +173 -51
- package/dist/lint-cli.mjs +1636 -1535
- package/dist/lint-ignored.mjs +55 -4
- package/dist/oxlint.d.mts +143 -9
- package/dist/oxlint.mjs +233 -83
- package/package.json +15 -11
package/README.md
CHANGED
|
@@ -38,6 +38,16 @@ import isentinel from "@isentinel/eslint-config";
|
|
|
38
38
|
export default isentinel();
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
`@isentinel/eslint-config/eslint` is an explicit alias of the root export, for
|
|
42
|
+
symmetry with `@isentinel/eslint-config/oxlint`:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
// eslint.config.ts
|
|
46
|
+
import { isentinel } from "@isentinel/eslint-config/eslint";
|
|
47
|
+
|
|
48
|
+
export default isentinel();
|
|
49
|
+
```
|
|
50
|
+
|
|
41
51
|
#### Optional: TypeScript Config Support
|
|
42
52
|
|
|
43
53
|
If you want to use `eslint.config.ts` instead of `.js`, install `jiti` v2.0.0 or
|
package/dist/cli.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import path from "node:path";
|
|
|
9
9
|
import { existsSync, readFileSync } from "fs";
|
|
10
10
|
import { execSync } from "node:child_process";
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "6.0.0-beta.
|
|
12
|
+
var version = "6.0.0-beta.17";
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "@isentinel/eslint-config",
|
|
15
15
|
version,
|
|
@@ -38,6 +38,10 @@ var package_default = {
|
|
|
38
38
|
exports: {
|
|
39
39
|
".": "./dist/index.mjs",
|
|
40
40
|
"./cli": "./dist/cli.mjs",
|
|
41
|
+
"./eslint": {
|
|
42
|
+
"types": "./dist/index.d.mts",
|
|
43
|
+
"default": "./dist/index.mjs"
|
|
44
|
+
},
|
|
41
45
|
"./formatter-agents": "./dist/formatter-agents.mjs",
|
|
42
46
|
"./oxlint": {
|
|
43
47
|
"types": "./dist/oxlint.d.mts",
|
|
@@ -133,6 +137,7 @@ var package_default = {
|
|
|
133
137
|
"@isentinel/eslint-config": "workspace:*",
|
|
134
138
|
"@isentinel/tsconfig": "catalog:dev",
|
|
135
139
|
"@stylistic/eslint-plugin-migrate": "catalog:dev",
|
|
140
|
+
"@total-typescript/shoehorn": "catalog:dev",
|
|
136
141
|
"@types/node": "catalog:dev",
|
|
137
142
|
"@types/picomatch": "catalog:dev",
|
|
138
143
|
"@types/semver": "catalog:dev",
|
|
@@ -156,7 +161,6 @@ var package_default = {
|
|
|
156
161
|
"picomatch": "catalog:dev",
|
|
157
162
|
"pnpm-workspace-yaml": "catalog:dev",
|
|
158
163
|
"publint": "catalog:dev",
|
|
159
|
-
"rimraf": "catalog:dev",
|
|
160
164
|
"tsdown": "catalog:dev",
|
|
161
165
|
"type-fest": "catalog:dev",
|
|
162
166
|
"typescript": "catalog:dev",
|
|
@@ -166,7 +170,7 @@ var package_default = {
|
|
|
166
170
|
peerDependencies: {
|
|
167
171
|
"@vitest/eslint-plugin": "^1.6.4",
|
|
168
172
|
"eslint": "^10.4.0",
|
|
169
|
-
"eslint-plugin-eslint-plugin": "^7.
|
|
173
|
+
"eslint-plugin-eslint-plugin": "^7.5.0",
|
|
170
174
|
"eslint-plugin-jest": "^29.15.0",
|
|
171
175
|
"eslint-plugin-jest-extended": "^3.0.0",
|
|
172
176
|
"eslint-plugin-n": "^17.0.0 || ^18.0.0",
|
|
@@ -249,6 +253,17 @@ const dependenciesMap = {
|
|
|
249
253
|
test: ["eslint-plugin-jest"]
|
|
250
254
|
};
|
|
251
255
|
//#endregion
|
|
256
|
+
//#region src/guards.ts
|
|
257
|
+
/**
|
|
258
|
+
* Whether a value is an array whose every element is a string.
|
|
259
|
+
*
|
|
260
|
+
* @param value - The value to test.
|
|
261
|
+
* @returns Whether the value is a `string` array.
|
|
262
|
+
*/
|
|
263
|
+
function isStringArray(value) {
|
|
264
|
+
return Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
265
|
+
}
|
|
266
|
+
//#endregion
|
|
252
267
|
//#region node_modules/.pnpm/parse-gitignore-ts@1.0.0/node_modules/parse-gitignore-ts/dist/index.mjs
|
|
253
268
|
var isObject = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
|
|
254
269
|
var INVALID_PATH_CHARS_REGEX = /[<>:"|?*\n\r\t\f\x00-\x1F]/;
|
|
@@ -467,7 +482,7 @@ import isentinel from '@isentinel/eslint-config'
|
|
|
467
482
|
|
|
468
483
|
export default isentinel({
|
|
469
484
|
${mainConfig}
|
|
470
|
-
}${additionalConfigs?.map((config) => `,{\n${config}\n}`)})
|
|
485
|
+
}${additionalConfigs?.map((config) => `,{\n${config}\n}`).join(",") ?? ""})
|
|
471
486
|
`.trimStart();
|
|
472
487
|
}
|
|
473
488
|
function isGitClean() {
|
|
@@ -511,9 +526,9 @@ async function updateEslintFiles(result) {
|
|
|
511
526
|
const versionsMap = {
|
|
512
527
|
"eslint": "10.7.0",
|
|
513
528
|
"eslint-plugin-jest": "29.15.4",
|
|
514
|
-
"eslint-plugin-react-jsx": "5.17.
|
|
515
|
-
"eslint-plugin-react-naming-convention": "5.17.
|
|
516
|
-
"eslint-plugin-react-x": "5.17.
|
|
529
|
+
"eslint-plugin-react-jsx": "5.17.2",
|
|
530
|
+
"eslint-plugin-react-naming-convention": "5.17.2",
|
|
531
|
+
"eslint-plugin-react-x": "5.17.2"
|
|
517
532
|
};
|
|
518
533
|
//#endregion
|
|
519
534
|
//#region src/cli/stages/update-package-json.ts
|
|
@@ -573,7 +588,7 @@ async function updatePackageJson(result, skipPrompt = false) {
|
|
|
573
588
|
}
|
|
574
589
|
if (addedPackages.length) note(ansis.dim(addedPackages.join(", ")), "Added packages");
|
|
575
590
|
parsedPackage.scripts ??= {};
|
|
576
|
-
const scripts = parsedPackage
|
|
591
|
+
const { scripts = {} } = parsedPackage;
|
|
577
592
|
const { added, overwritten } = await mergeLintScripts(scripts, {
|
|
578
593
|
confirmOverwrite: async (name, existing, desired) => {
|
|
579
594
|
return await confirm({
|
|
@@ -614,7 +629,7 @@ async function updateVscodeSettings(result) {
|
|
|
614
629
|
async function run(options = {}) {
|
|
615
630
|
const argumentSkipPrompt = !!(process.env["SKIP_PROMPT"] ?? "") || options.yes;
|
|
616
631
|
const argumentTemplate = options.frameworks?.map((framework) => framework.trim()).filter((framework) => {
|
|
617
|
-
return frameworks.
|
|
632
|
+
return frameworks.some((valid) => valid === framework);
|
|
618
633
|
});
|
|
619
634
|
const eslintConfigFiles = fs.readdirSync(process.cwd()).filter((file) => file.startsWith("eslint.config."));
|
|
620
635
|
if (eslintConfigFiles.length > 0) {
|
|
@@ -627,7 +642,7 @@ async function run(options = {}) {
|
|
|
627
642
|
updateVscodeSettings: true
|
|
628
643
|
};
|
|
629
644
|
if (argumentSkipPrompt !== true) {
|
|
630
|
-
|
|
645
|
+
const { frameworks: groupedFrameworks, uncommittedConfirmed, updateVscodeSettings: shouldUpdateVscode } = await group({
|
|
631
646
|
uncommittedConfirmed: async () => {
|
|
632
647
|
if (isGitClean()) return true;
|
|
633
648
|
return confirm({
|
|
@@ -655,6 +670,13 @@ async function run(options = {}) {
|
|
|
655
670
|
cancel("Operation cancelled.");
|
|
656
671
|
process.exit(0);
|
|
657
672
|
} });
|
|
673
|
+
result = {
|
|
674
|
+
frameworks: isStringArray(groupedFrameworks) ? groupedFrameworks.filter((value) => {
|
|
675
|
+
return frameworks.some((option) => option === value);
|
|
676
|
+
}) : [],
|
|
677
|
+
uncommittedConfirmed: uncommittedConfirmed === true,
|
|
678
|
+
updateVscodeSettings: shouldUpdateVscode !== false
|
|
679
|
+
};
|
|
658
680
|
if (!result.uncommittedConfirmed) return process.exit(1);
|
|
659
681
|
}
|
|
660
682
|
await updatePackageJson(result, argumentSkipPrompt === true);
|
package/dist/index.d.mts
CHANGED
|
@@ -1019,6 +1019,9 @@ interface MainRuleDefaults {
|
|
|
1019
1019
|
"jsdoc/no-undefined-types": {
|
|
1020
1020
|
"*": "error";
|
|
1021
1021
|
};
|
|
1022
|
+
"jsdoc/normalize-see-links": {
|
|
1023
|
+
"*": "warn";
|
|
1024
|
+
};
|
|
1022
1025
|
"jsdoc/require-asterisk-prefix": {
|
|
1023
1026
|
"*": "warn";
|
|
1024
1027
|
};
|
|
@@ -2037,6 +2040,9 @@ interface MainRuleDefaults {
|
|
|
2037
2040
|
"react/jsx-wrap-multilines": {
|
|
2038
2041
|
"*": "off";
|
|
2039
2042
|
};
|
|
2043
|
+
"require-await": {
|
|
2044
|
+
"*": "off";
|
|
2045
|
+
};
|
|
2040
2046
|
"rest-spread-spacing": {
|
|
2041
2047
|
"*": "off";
|
|
2042
2048
|
};
|
|
@@ -2167,6 +2173,10 @@ interface MainRuleDefaults {
|
|
|
2167
2173
|
game_roblox: "error";
|
|
2168
2174
|
package_roblox: "error";
|
|
2169
2175
|
};
|
|
2176
|
+
"small-rules/array-type-generic": {
|
|
2177
|
+
game_roblox: "error";
|
|
2178
|
+
package_roblox: "error";
|
|
2179
|
+
};
|
|
2170
2180
|
"small-rules/no-array-constructor-elements": {
|
|
2171
2181
|
game_roblox: "error";
|
|
2172
2182
|
package_roblox: "error";
|
|
@@ -2181,6 +2191,10 @@ interface MainRuleDefaults {
|
|
|
2181
2191
|
"small-rules/no-commented-code": {
|
|
2182
2192
|
"*": "error";
|
|
2183
2193
|
};
|
|
2194
|
+
"small-rules/no-recursive": {
|
|
2195
|
+
game_roblox: "error";
|
|
2196
|
+
package_roblox: "error";
|
|
2197
|
+
};
|
|
2184
2198
|
"small-rules/prefer-class-properties": {
|
|
2185
2199
|
"*": "error";
|
|
2186
2200
|
};
|
|
@@ -2195,6 +2209,9 @@ interface MainRuleDefaults {
|
|
|
2195
2209
|
"small-rules/prefer-singular-enums": {
|
|
2196
2210
|
"*": "error";
|
|
2197
2211
|
};
|
|
2212
|
+
"small-rules/require-async-suffix": {
|
|
2213
|
+
"*": "error";
|
|
2214
|
+
};
|
|
2198
2215
|
"small-rules/strict-component-boundaries": {
|
|
2199
2216
|
"*": "error";
|
|
2200
2217
|
};
|
|
@@ -3192,6 +3209,9 @@ interface MainRuleDefaults {
|
|
|
3192
3209
|
"ts/consistent-type-definitions": {
|
|
3193
3210
|
"*": ["error", "interface"];
|
|
3194
3211
|
};
|
|
3212
|
+
"ts/consistent-type-exports": {
|
|
3213
|
+
"*": "error";
|
|
3214
|
+
};
|
|
3195
3215
|
"ts/consistent-type-imports": {
|
|
3196
3216
|
"*": ["error", {
|
|
3197
3217
|
"disallowTypeAnnotations": false;
|
|
@@ -3246,6 +3266,12 @@ interface MainRuleDefaults {
|
|
|
3246
3266
|
"ts/no-array-constructor": {
|
|
3247
3267
|
"*": "off";
|
|
3248
3268
|
};
|
|
3269
|
+
"ts/no-array-delete": {
|
|
3270
|
+
"*": "error";
|
|
3271
|
+
};
|
|
3272
|
+
"ts/no-base-to-string": {
|
|
3273
|
+
"*": "error";
|
|
3274
|
+
};
|
|
3249
3275
|
"ts/no-confusing-non-null-assertion": {
|
|
3250
3276
|
"*": "error";
|
|
3251
3277
|
};
|
|
@@ -3293,7 +3319,20 @@ interface MainRuleDefaults {
|
|
|
3293
3319
|
"*": "error";
|
|
3294
3320
|
};
|
|
3295
3321
|
"ts/no-floating-promises": {
|
|
3296
|
-
|
|
3322
|
+
game_roblox: ["error", {
|
|
3323
|
+
"checkThenables": true;
|
|
3324
|
+
"ignoreVoid": true;
|
|
3325
|
+
}];
|
|
3326
|
+
game_std: ["error", {
|
|
3327
|
+
"checkThenables": false;
|
|
3328
|
+
"ignoreVoid": true;
|
|
3329
|
+
}];
|
|
3330
|
+
package_roblox: ["error", {
|
|
3331
|
+
"checkThenables": true;
|
|
3332
|
+
"ignoreVoid": true;
|
|
3333
|
+
}];
|
|
3334
|
+
package_std: ["error", {
|
|
3335
|
+
"checkThenables": false;
|
|
3297
3336
|
"ignoreVoid": true;
|
|
3298
3337
|
}];
|
|
3299
3338
|
};
|
|
@@ -3321,6 +3360,9 @@ interface MainRuleDefaults {
|
|
|
3321
3360
|
"ts/no-misused-promises": {
|
|
3322
3361
|
"*": "error";
|
|
3323
3362
|
};
|
|
3363
|
+
"ts/no-misused-spread": {
|
|
3364
|
+
"*": "error";
|
|
3365
|
+
};
|
|
3324
3366
|
"ts/no-mixed-enums": {
|
|
3325
3367
|
"*": "error";
|
|
3326
3368
|
};
|
|
@@ -3377,6 +3419,9 @@ interface MainRuleDefaults {
|
|
|
3377
3419
|
"ts/no-unnecessary-type-constraint": {
|
|
3378
3420
|
"*": "error";
|
|
3379
3421
|
};
|
|
3422
|
+
"ts/no-unnecessary-type-conversion": {
|
|
3423
|
+
"*": "error";
|
|
3424
|
+
};
|
|
3380
3425
|
"ts/no-unnecessary-type-parameters": {
|
|
3381
3426
|
"*": "error";
|
|
3382
3427
|
};
|
|
@@ -3404,6 +3449,9 @@ interface MainRuleDefaults {
|
|
|
3404
3449
|
"ts/no-unsafe-return": {
|
|
3405
3450
|
"*": "error";
|
|
3406
3451
|
};
|
|
3452
|
+
"ts/no-unsafe-type-assertion": {
|
|
3453
|
+
"*": "error";
|
|
3454
|
+
};
|
|
3407
3455
|
"ts/no-unsafe-unary-minus": {
|
|
3408
3456
|
"*": "error";
|
|
3409
3457
|
};
|
|
@@ -3500,11 +3548,25 @@ interface MainRuleDefaults {
|
|
|
3500
3548
|
"ts/quotes": {
|
|
3501
3549
|
"*": "off";
|
|
3502
3550
|
};
|
|
3551
|
+
"ts/related-getter-setter-pairs": {
|
|
3552
|
+
game_std: "error";
|
|
3553
|
+
package_std: "error";
|
|
3554
|
+
};
|
|
3555
|
+
"ts/require-array-sort-compare": {
|
|
3556
|
+
game_std: "error";
|
|
3557
|
+
package_std: "error";
|
|
3558
|
+
};
|
|
3559
|
+
"ts/require-await": {
|
|
3560
|
+
"*": "error";
|
|
3561
|
+
};
|
|
3503
3562
|
"ts/restrict-plus-operands": {
|
|
3504
3563
|
"*": "error";
|
|
3505
3564
|
};
|
|
3506
3565
|
"ts/restrict-template-expressions": {
|
|
3507
|
-
"*": "
|
|
3566
|
+
"*": ["error", {
|
|
3567
|
+
"allowBoolean": true;
|
|
3568
|
+
"allowNumber": true;
|
|
3569
|
+
}];
|
|
3508
3570
|
};
|
|
3509
3571
|
"ts/return-await": {
|
|
3510
3572
|
"*": "error";
|
|
@@ -5184,7 +5246,9 @@ interface TestRuleDefaults {
|
|
|
5184
5246
|
"*": "warn";
|
|
5185
5247
|
};
|
|
5186
5248
|
"jest/prefer-ending-with-an-expect": {
|
|
5187
|
-
"*": "warn"
|
|
5249
|
+
"*": ["warn", {
|
|
5250
|
+
"assertFunctionNames": ["expect", "expectTypeOf", "assertType"];
|
|
5251
|
+
}];
|
|
5188
5252
|
};
|
|
5189
5253
|
"jest/prefer-equality-matcher": {
|
|
5190
5254
|
"*": "warn";
|
|
@@ -5287,6 +5351,10 @@ interface TestRuleDefaults {
|
|
|
5287
5351
|
"sonar/no-trivial-assertions": {
|
|
5288
5352
|
"*": "error";
|
|
5289
5353
|
};
|
|
5354
|
+
"sonar/super-linear-regex": {
|
|
5355
|
+
game_std: "off";
|
|
5356
|
+
package_std: "off";
|
|
5357
|
+
};
|
|
5290
5358
|
"sonar/synchronous-suite-callback": {
|
|
5291
5359
|
"*": "error";
|
|
5292
5360
|
};
|
|
@@ -7683,6 +7751,11 @@ interface RuleOptions {
|
|
|
7683
7751
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
|
|
7684
7752
|
*/
|
|
7685
7753
|
'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
|
|
7754
|
+
/**
|
|
7755
|
+
* Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
|
|
7756
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
|
|
7757
|
+
*/
|
|
7758
|
+
'jsdoc/normalize-see-links'?: Linter.RuleEntry<JsdocNormalizeSeeLinks>;
|
|
7686
7759
|
/**
|
|
7687
7760
|
* Prefer `@import` tags to inline `import()` statements.
|
|
7688
7761
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/prefer-import-tag.md#repos-sticky-header
|
|
@@ -17455,6 +17528,11 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
17455
17528
|
disableReporting?: boolean;
|
|
17456
17529
|
markVariablesAsUsed?: boolean;
|
|
17457
17530
|
}];
|
|
17531
|
+
// ----- jsdoc/normalize-see-links -----
|
|
17532
|
+
type JsdocNormalizeSeeLinks = [] | [{
|
|
17533
|
+
canonicalForm?: ("pipe" | "prefix");
|
|
17534
|
+
enableFixer?: boolean;
|
|
17535
|
+
}];
|
|
17458
17536
|
// ----- jsdoc/prefer-import-tag -----
|
|
17459
17537
|
type JsdocPreferImportTag = [] | [{
|
|
17460
17538
|
enableFixer?: boolean;
|
|
@@ -26382,6 +26460,19 @@ declare function isInGitHooksOrLintStaged(environment?: NodeJS.ProcessEnv): bool
|
|
|
26382
26460
|
* @returns Whether an agent session was detected.
|
|
26383
26461
|
*/
|
|
26384
26462
|
declare function isInAgentSession(environment?: NodeJS.ProcessEnv): boolean;
|
|
26463
|
+
/**
|
|
26464
|
+
* Whether autofixes that rewrite code an agent just wrote should be withheld.
|
|
26465
|
+
*
|
|
26466
|
+
* Opt-in, and deliberately not tied to {@link isInAgentSession}: merely being
|
|
26467
|
+
* an agent is no reason to lint differently — an agent that runs the linter
|
|
26468
|
+
* wants the same fixes a human would get. The case this exists for is the
|
|
26469
|
+
* wrapper that fixes without anyone reading the diff (an edit hook, a
|
|
26470
|
+
* fix-on-save daemon), which knows it is that and can say so.
|
|
26471
|
+
*
|
|
26472
|
+
* @param environment - The environment variables to inspect.
|
|
26473
|
+
* @returns Whether fix suppression was requested.
|
|
26474
|
+
*/
|
|
26475
|
+
declare function isAgentAutofixDisabled(environment?: NodeJS.ProcessEnv): boolean;
|
|
26385
26476
|
declare function isInEditorEnvironment(environment?: NodeJS.ProcessEnv): boolean;
|
|
26386
26477
|
/**
|
|
26387
26478
|
* Oxfmt's generated types widen `jsdoc.commentLineStrategy` and
|
|
@@ -26418,7 +26509,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
|
|
|
26418
26509
|
* object are resolved against. Defaults to the location ESLint derives the
|
|
26419
26510
|
* config from. Added in ESLint 9.30.
|
|
26420
26511
|
*
|
|
26421
|
-
* @see
|
|
26512
|
+
* @see {@link https://eslint.org/docs/latest/use/configure/configuration-files#specifying-basepath|basePath}
|
|
26422
26513
|
*/
|
|
26423
26514
|
basePath?: string;
|
|
26424
26515
|
/**
|
|
@@ -26426,7 +26517,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
|
|
|
26426
26517
|
* objects. When `files` is specified, these plugins are only available to
|
|
26427
26518
|
* the matching files.
|
|
26428
26519
|
*
|
|
26429
|
-
* @see
|
|
26520
|
+
* @see {@link https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration|Using plugins in your configuration}
|
|
26430
26521
|
*/
|
|
26431
26522
|
plugins?: Record<string, any>;
|
|
26432
26523
|
/**
|
|
@@ -27098,7 +27189,7 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
|
|
|
27098
27189
|
* This will become the default in a future major version.
|
|
27099
27190
|
* @see {@link OptionsConfig.namedConfigs}
|
|
27100
27191
|
*/
|
|
27101
|
-
type NamedOptionsConfig =
|
|
27192
|
+
type NamedOptionsConfig = Omit<TypedFlatConfigItem, "ignores"> & OptionsConfig & {
|
|
27102
27193
|
name: string;
|
|
27103
27194
|
namedConfigs: true;
|
|
27104
27195
|
};
|
|
@@ -27231,6 +27322,7 @@ declare const GLOB_JSX = "**/*.{,c,m}jsx";
|
|
|
27231
27322
|
declare const GLOB_TS = "**/*.{,c,m}ts";
|
|
27232
27323
|
declare const GLOB_TSX = "**/*.{,c,m}tsx";
|
|
27233
27324
|
declare const GLOB_DTS = "**/*.d.{,c,m}ts";
|
|
27325
|
+
declare const GLOB_BIN: Array<string>;
|
|
27234
27326
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
27235
27327
|
declare const GLOB_CSS = "**/*.css";
|
|
27236
27328
|
declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
@@ -27261,7 +27353,7 @@ declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
|
27261
27353
|
* Type tests (`expectTypeOf` / `assertType`), run by Vitest's `typecheck`
|
|
27262
27354
|
* mode. They are test files, but assert nothing at runtime.
|
|
27263
27355
|
*/
|
|
27264
|
-
declare const GLOB_TYPE_TESTS = "**/*.test-d.{,c,m}[jt]s{,x}";
|
|
27356
|
+
declare const GLOB_TYPE_TESTS = "**/*.{test,spec}-d.{,c,m}[jt]s{,x}";
|
|
27265
27357
|
declare const GLOB_TESTS: Array<string>;
|
|
27266
27358
|
declare const GLOB_BUILD_TOOLS: Array<string>;
|
|
27267
27359
|
declare const GLOB_ALL_SRC: string[];
|
|
@@ -27273,7 +27365,7 @@ declare function comments({ prettierOptions, stylistic }?: OptionsFormatters & O
|
|
|
27273
27365
|
//#region src/eslint/configs/disables.d.ts
|
|
27274
27366
|
declare function disables({ root }: {
|
|
27275
27367
|
root: Array<string>;
|
|
27276
|
-
}):
|
|
27368
|
+
}): Array<TypedFlatConfigItem>;
|
|
27277
27369
|
//#endregion
|
|
27278
27370
|
//#region src/eslint/configs/e18e.d.ts
|
|
27279
27371
|
declare function e18e({ files, ignores, isInEditor, modernization, type, moduleReplacements, nodeMajor, overrides, performanceImprovements }?: OptionsE18e & OptionsFiles & OptionsIsInEditor & OptionsProjectType & {
|
|
@@ -27304,7 +27396,7 @@ interface GitignoreOptions {
|
|
|
27304
27396
|
declare function gitignore({ config, explicit }?: GitignoreOptions): Promise<Array<TypedFlatConfigItem>>;
|
|
27305
27397
|
//#endregion
|
|
27306
27398
|
//#region src/eslint/configs/ignores.d.ts
|
|
27307
|
-
declare function ignores$1(userIgnores?: ((originals: Array<string>) => Array<string>) | Array<string>):
|
|
27399
|
+
declare function ignores$1(userIgnores?: ((originals: Array<string>) => Array<string>) | Array<string>): Array<TypedFlatConfigItem>;
|
|
27308
27400
|
//#endregion
|
|
27309
27401
|
//#region src/eslint/configs/imports.d.ts
|
|
27310
27402
|
declare function imports({ stylistic, type }?: OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
@@ -27434,7 +27526,14 @@ declare function test({ files, isInEditor, jest, overrides, roblox: isRoblox, st
|
|
|
27434
27526
|
declare function toml({ files, overrides, stylistic }?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
27435
27527
|
//#endregion
|
|
27436
27528
|
//#region src/eslint/configs/typescript.d.ts
|
|
27437
|
-
declare function typescript(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptErasableOnly & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes
|
|
27529
|
+
declare function typescript(options?: OptionsComponentExtensions & OptionsFiles & OptionsHasRoblox & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptErasableOnly & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & {
|
|
27530
|
+
/**
|
|
27531
|
+
* When set, re-apply the non-roblox type-aware rules to every
|
|
27532
|
+
* type-aware file except these globs (the roblox scope), so the
|
|
27533
|
+
* complement is linted as standard-TS/Node land.
|
|
27534
|
+
*/
|
|
27535
|
+
complementIgnores?: Array<string>;
|
|
27536
|
+
}): Promise<Array<TypedFlatConfigItem>>;
|
|
27438
27537
|
//#endregion
|
|
27439
27538
|
//#region src/eslint/configs/unicorn.d.ts
|
|
27440
27539
|
declare function unicorn({ complementIgnores, nameReplacements, roblox, root: customRootGlobs, stylistic }?: OptionsHasRoblox & OptionsStylistic & OptionsUnicorn & {
|
|
@@ -27450,4 +27549,4 @@ declare function unicorn({ complementIgnores, nameReplacements, roblox, root: cu
|
|
|
27450
27549
|
//#region src/eslint/configs/yaml.d.ts
|
|
27451
27550
|
declare function yaml({ files, overrides, stylistic }?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
27452
27551
|
//#endregion
|
|
27453
|
-
export { Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BUILD_TOOLS, GLOB_CSS, GLOB_DTS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LINTABLE_EXTENSIONS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MISE, GLOB_PACKAGE_JSON, GLOB_PACKAGE_JSON_ROOT, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_EXTENSIONS, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TYPE_TESTS, GLOB_XML, GLOB_YAML, GitignoreOptions, JsdocOptions, NamedFlatConfigItem, NamedOptionsConfig, NamingConfig, NamingSelector, OptionsComponentExtensions, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFilesTypeAware, OptionsFormatters, OptionsHasRoblox, OptionsHasTypeScript, OptionsIsInEditor, OptionsJest, OptionsOverrides, OptionsOverridesTypeAware, OptionsPnpm, OptionsProjectType, OptionsStylistic, OptionsTestFramework, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsVitest, type OxfmtOptions, PerfectionistConfig, type PrettierOptions, ReactConfig, Rules, SpellCheckConfig, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, e18e, eslintPlugin, flawless, gitignore, ignores$1 as ignores, imports, isInAgentSession, isInEditorEnvironment, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, loadSmallRulesPlugin, markdown, naming, node, oxfmt, packageJson, perfectionist, pnpm, promise, react, roblox$1 as roblox, smallRules, sonarjs, sortCspell, sortGithubAction, sortMiseToml, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic$1 as stylistic, test, toml, typescript, unicorn, yaml };
|
|
27552
|
+
export { type Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BIN, GLOB_BUILD_TOOLS, GLOB_CSS, GLOB_DTS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LINTABLE_EXTENSIONS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MISE, GLOB_PACKAGE_JSON, GLOB_PACKAGE_JSON_ROOT, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_EXTENSIONS, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TYPE_TESTS, GLOB_XML, GLOB_YAML, GitignoreOptions, type JsdocOptions, type NamedFlatConfigItem, type NamedOptionsConfig, type NamingConfig, type NamingSelector, type OptionsComponentExtensions, type OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFilesTypeAware, type OptionsFormatters, type OptionsHasRoblox, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsJest, type OptionsOverrides, type OptionsOverridesTypeAware, type OptionsPnpm, type OptionsProjectType, type OptionsStylistic, type OptionsTestFramework, type OptionsTypeScriptErasableOnly, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsVitest, type OxfmtOptions, type PerfectionistConfig, type PrettierOptions, type ReactConfig, type Rules, type SpellCheckConfig, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, e18e, eslintPlugin, flawless, gitignore, ignores$1 as ignores, imports, isAgentAutofixDisabled, isInAgentSession, isInEditorEnvironment, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, loadSmallRulesPlugin, markdown, naming, node, oxfmt, packageJson, perfectionist, pnpm, promise, react, roblox$1 as roblox, smallRules, sonarjs, sortCspell, sortGithubAction, sortMiseToml, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic$1 as stylistic, test, toml, typescript, unicorn, yaml };
|