@infernodesign/eslint-config 2.15.2 → 2.17.0
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/cli.js +20 -29
- package/dist/{constants-BxEizS7D.js → constants-JlDUTs3Q.js} +1 -2
- package/dist/index.d.ts +433 -486
- package/dist/index.js +41 -81
- package/package.json +37 -36
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_NAME } from "./constants-
|
|
1
|
+
import { t as PACKAGE_NAME } from "./constants-JlDUTs3Q.js";
|
|
2
2
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import fsPromises from "node:fs/promises";
|
|
@@ -18,7 +18,7 @@ import pluginUnusedImports from "eslint-plugin-unused-imports";
|
|
|
18
18
|
import globals from "globals";
|
|
19
19
|
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
20
20
|
import { configs } from "eslint-plugin-regexp";
|
|
21
|
-
|
|
21
|
+
// ../../node_modules/.bun/find-up-simple@1.0.1/node_modules/find-up-simple/index.js
|
|
22
22
|
const toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
23
23
|
async function findUp(name, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
|
|
24
24
|
let directory = path.resolve(toPath(cwd) ?? "");
|
|
@@ -50,8 +50,7 @@ function findUpSync(name, { cwd = process$1.cwd(), type = "file", stopAt } = {})
|
|
|
50
50
|
directory = path.dirname(directory);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
//#region src/globs.ts
|
|
53
|
+
// src/globs.ts
|
|
55
54
|
const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
56
55
|
const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
57
56
|
const GLOB_JS = "**/*.?([cm])js";
|
|
@@ -205,8 +204,7 @@ const GLOB_SEARCH_EXCLUDE = /* @__PURE__ */ new Set([
|
|
|
205
204
|
"tmp",
|
|
206
205
|
"vendor"
|
|
207
206
|
]);
|
|
208
|
-
|
|
209
|
-
//#region src/utils.ts
|
|
207
|
+
// src/utils.ts
|
|
210
208
|
const scopeUrl = fileURLToPath(new URL(".", import.meta.url));
|
|
211
209
|
const isCwdInScope = isPackageExists(PACKAGE_NAME);
|
|
212
210
|
/**
|
|
@@ -360,8 +358,7 @@ function renameRules(rules, map) {
|
|
|
360
358
|
function toArray(value) {
|
|
361
359
|
return Array.isArray(value) ? value : [value];
|
|
362
360
|
}
|
|
363
|
-
|
|
364
|
-
//#region src/configs/astro.ts
|
|
361
|
+
// src/configs/astro.ts
|
|
365
362
|
async function astro(options = {}) {
|
|
366
363
|
const { files = [GLOB_ASTRO], overrides = {}, stylistic = true } = options;
|
|
367
364
|
const [pluginAstro, parserAstro, parserTs] = await Promise.all([
|
|
@@ -407,16 +404,14 @@ async function astro(options = {}) {
|
|
|
407
404
|
}
|
|
408
405
|
}];
|
|
409
406
|
}
|
|
410
|
-
|
|
411
|
-
//#region src/configs/command.ts
|
|
407
|
+
// src/configs/command.ts
|
|
412
408
|
async function command() {
|
|
413
409
|
return [{
|
|
414
410
|
...createCommand(),
|
|
415
411
|
name: "config/command/rules"
|
|
416
412
|
}];
|
|
417
413
|
}
|
|
418
|
-
|
|
419
|
-
//#region src/configs/comments.ts
|
|
414
|
+
// src/configs/comments.ts
|
|
420
415
|
async function comments() {
|
|
421
416
|
return [{
|
|
422
417
|
name: "config/eslint-comments/rules",
|
|
@@ -429,8 +424,7 @@ async function comments() {
|
|
|
429
424
|
}
|
|
430
425
|
}];
|
|
431
426
|
}
|
|
432
|
-
|
|
433
|
-
//#region src/configs/disables.ts
|
|
427
|
+
// src/configs/disables.ts
|
|
434
428
|
async function disables() {
|
|
435
429
|
return [
|
|
436
430
|
{
|
|
@@ -489,8 +483,7 @@ async function disables() {
|
|
|
489
483
|
}
|
|
490
484
|
];
|
|
491
485
|
}
|
|
492
|
-
|
|
493
|
-
//#region src/configs/e18e.ts
|
|
486
|
+
// src/configs/e18e.ts
|
|
494
487
|
async function e18e(options = {}) {
|
|
495
488
|
const { isInEditor = false, modernization = true, type = "app", moduleReplacements = type === "lib" && isInEditor, overrides = {}, performanceImprovements = true } = options;
|
|
496
489
|
const configs = pluginE18e.configs;
|
|
@@ -512,8 +505,7 @@ async function e18e(options = {}) {
|
|
|
512
505
|
}
|
|
513
506
|
}];
|
|
514
507
|
}
|
|
515
|
-
|
|
516
|
-
//#region src/configs/stylistic.ts
|
|
508
|
+
// src/configs/stylistic.ts
|
|
517
509
|
const StylisticConfigDefaults = {
|
|
518
510
|
arrowParens: true,
|
|
519
511
|
blockSpacing: true,
|
|
@@ -579,8 +571,7 @@ async function stylistic(options = {}) {
|
|
|
579
571
|
}
|
|
580
572
|
}];
|
|
581
573
|
}
|
|
582
|
-
|
|
583
|
-
//#region src/configs/formatters.ts
|
|
574
|
+
// src/configs/formatters.ts
|
|
584
575
|
async function formatters(options = {}, stylistic = {}) {
|
|
585
576
|
if (options === true) {
|
|
586
577
|
const isPrettierPluginXmlInScope = isPackageInScope("@prettier/plugin-xml");
|
|
@@ -748,8 +739,7 @@ function mergePrettierOptions(options, overrides) {
|
|
|
748
739
|
plugins: [...overrides.plugins ?? [], ...options.plugins ?? []]
|
|
749
740
|
};
|
|
750
741
|
}
|
|
751
|
-
|
|
752
|
-
//#region src/configs/ignores.ts
|
|
742
|
+
// src/configs/ignores.ts
|
|
753
743
|
async function ignores(userIgnores = [], ignoreTypeScript = false) {
|
|
754
744
|
let ignores = [...GLOB_EXCLUDE];
|
|
755
745
|
if (ignoreTypeScript) ignores.push(GLOB_TS, GLOB_TSX);
|
|
@@ -760,8 +750,7 @@ async function ignores(userIgnores = [], ignoreTypeScript = false) {
|
|
|
760
750
|
name: "config/ignores"
|
|
761
751
|
}];
|
|
762
752
|
}
|
|
763
|
-
|
|
764
|
-
//#region src/configs/imports.ts
|
|
753
|
+
// src/configs/imports.ts
|
|
765
754
|
async function imports(options = {}) {
|
|
766
755
|
const { overrides = {}, stylistic = true } = options;
|
|
767
756
|
return [{
|
|
@@ -784,8 +773,7 @@ async function imports(options = {}) {
|
|
|
784
773
|
}
|
|
785
774
|
}];
|
|
786
775
|
}
|
|
787
|
-
|
|
788
|
-
//#region src/configs/javascript.ts
|
|
776
|
+
// src/configs/javascript.ts
|
|
789
777
|
async function javascript(options = {}) {
|
|
790
778
|
const { isInEditor = false, overrides = {} } = options;
|
|
791
779
|
return [{
|
|
@@ -1015,8 +1003,7 @@ async function javascript(options = {}) {
|
|
|
1015
1003
|
}
|
|
1016
1004
|
}];
|
|
1017
1005
|
}
|
|
1018
|
-
|
|
1019
|
-
//#region src/configs/jsdoc.ts
|
|
1006
|
+
// src/configs/jsdoc.ts
|
|
1020
1007
|
/**
|
|
1021
1008
|
* JSDoc configuration.
|
|
1022
1009
|
*
|
|
@@ -1217,8 +1204,7 @@ async function jsdoc(options = {}) {
|
|
|
1217
1204
|
}
|
|
1218
1205
|
}];
|
|
1219
1206
|
}
|
|
1220
|
-
|
|
1221
|
-
//#region src/configs/jsonc.ts
|
|
1207
|
+
// src/configs/jsonc.ts
|
|
1222
1208
|
async function jsonc(options = {}) {
|
|
1223
1209
|
const { files = [
|
|
1224
1210
|
GLOB_JSON,
|
|
@@ -1283,8 +1269,7 @@ async function jsonc(options = {}) {
|
|
|
1283
1269
|
}
|
|
1284
1270
|
}];
|
|
1285
1271
|
}
|
|
1286
|
-
|
|
1287
|
-
//#region src/configs/jsx.ts
|
|
1272
|
+
// src/configs/jsx.ts
|
|
1288
1273
|
async function jsx(options = {}) {
|
|
1289
1274
|
const { a11y } = options;
|
|
1290
1275
|
const baseConfig = {
|
|
@@ -1321,8 +1306,7 @@ async function jsx(options = {}) {
|
|
|
1321
1306
|
}
|
|
1322
1307
|
}];
|
|
1323
1308
|
}
|
|
1324
|
-
|
|
1325
|
-
//#region src/configs/markdown.ts
|
|
1309
|
+
// src/configs/markdown.ts
|
|
1326
1310
|
async function markdown(options = {}) {
|
|
1327
1311
|
const { componentExts = [], files = [GLOB_MARKDOWN], overrides = {} } = options;
|
|
1328
1312
|
const markdown = await interopDefault(import("@eslint/markdown"));
|
|
@@ -1382,8 +1366,7 @@ async function markdown(options = {}) {
|
|
|
1382
1366
|
}
|
|
1383
1367
|
];
|
|
1384
1368
|
}
|
|
1385
|
-
|
|
1386
|
-
//#region src/configs/medusa.ts
|
|
1369
|
+
// src/configs/medusa.ts
|
|
1387
1370
|
const MedusaPluginName = "@medusajs/eslint-plugin";
|
|
1388
1371
|
/**
|
|
1389
1372
|
* Plugin prefix of the rules inside the Medusa preset configs, before the factory renames it.
|
|
@@ -1429,8 +1412,7 @@ async function medusa(options = {}) {
|
|
|
1429
1412
|
};
|
|
1430
1413
|
});
|
|
1431
1414
|
}
|
|
1432
|
-
|
|
1433
|
-
//#region src/configs/nextjs.ts
|
|
1415
|
+
// src/configs/nextjs.ts
|
|
1434
1416
|
async function nextjs(options = {}) {
|
|
1435
1417
|
const { files = [GLOB_SRC], overrides = {} } = options;
|
|
1436
1418
|
await ensurePackages(["@next/eslint-plugin-next"]);
|
|
@@ -1461,8 +1443,7 @@ async function nextjs(options = {}) {
|
|
|
1461
1443
|
}
|
|
1462
1444
|
}];
|
|
1463
1445
|
}
|
|
1464
|
-
|
|
1465
|
-
//#region src/configs/node.ts
|
|
1446
|
+
// src/configs/node.ts
|
|
1466
1447
|
async function node() {
|
|
1467
1448
|
return [{
|
|
1468
1449
|
name: "config/node/setup",
|
|
@@ -1487,8 +1468,7 @@ async function node() {
|
|
|
1487
1468
|
}
|
|
1488
1469
|
}];
|
|
1489
1470
|
}
|
|
1490
|
-
|
|
1491
|
-
//#region src/configs/perfectionist.ts
|
|
1471
|
+
// src/configs/perfectionist.ts
|
|
1492
1472
|
/**
|
|
1493
1473
|
* Perfectionist plugin for props and items sorting.
|
|
1494
1474
|
*
|
|
@@ -1631,8 +1611,7 @@ async function perfectionist() {
|
|
|
1631
1611
|
}
|
|
1632
1612
|
}];
|
|
1633
1613
|
}
|
|
1634
|
-
|
|
1635
|
-
//#region src/configs/pnpm.ts
|
|
1614
|
+
// src/configs/pnpm.ts
|
|
1636
1615
|
async function pnpm(options) {
|
|
1637
1616
|
const [pluginPnpm, pluginYaml, yamlParser, jsoncParser] = await Promise.all([
|
|
1638
1617
|
interopDefault(import("eslint-plugin-pnpm")),
|
|
@@ -1758,8 +1737,7 @@ async function detectCatalogUsage() {
|
|
|
1758
1737
|
const yaml = await fsPromises.readFile(workspaceFile, "utf-8");
|
|
1759
1738
|
return yaml.includes("catalog:") || yaml.includes("catalogs:");
|
|
1760
1739
|
}
|
|
1761
|
-
|
|
1762
|
-
//#region src/configs/react.ts
|
|
1740
|
+
// src/configs/react.ts
|
|
1763
1741
|
const ReactRefreshAllowConstantExportPackages = ["vite"];
|
|
1764
1742
|
const RemixPackages = [
|
|
1765
1743
|
"@remix-run/node",
|
|
@@ -1846,8 +1824,7 @@ async function react(options = {}) {
|
|
|
1846
1824
|
}] : []
|
|
1847
1825
|
];
|
|
1848
1826
|
}
|
|
1849
|
-
|
|
1850
|
-
//#region src/configs/regexp.ts
|
|
1827
|
+
// src/configs/regexp.ts
|
|
1851
1828
|
async function regexp(options = {}) {
|
|
1852
1829
|
const config = configs["flat/recommended"];
|
|
1853
1830
|
const rules = { ...config.rules };
|
|
@@ -1863,8 +1840,7 @@ async function regexp(options = {}) {
|
|
|
1863
1840
|
}
|
|
1864
1841
|
}];
|
|
1865
1842
|
}
|
|
1866
|
-
|
|
1867
|
-
//#region src/configs/sanity.ts
|
|
1843
|
+
// src/configs/sanity.ts
|
|
1868
1844
|
const SanityPluginName = "@sanity-labs/eslint-plugin";
|
|
1869
1845
|
async function sanity(options = {}) {
|
|
1870
1846
|
const { files = GLOB_SANITY, overrides = {}, preset = "recommended" } = options;
|
|
@@ -1908,8 +1884,7 @@ function mergeSanitySettings(existing, next) {
|
|
|
1908
1884
|
}
|
|
1909
1885
|
};
|
|
1910
1886
|
}
|
|
1911
|
-
|
|
1912
|
-
//#region src/configs/shadcn.ts
|
|
1887
|
+
// src/configs/shadcn.ts
|
|
1913
1888
|
const ShadcnPluginName = "@shadcn/lint";
|
|
1914
1889
|
const defaultComponentFiles = ["**/components/ui/**"];
|
|
1915
1890
|
const presetRules = {
|
|
@@ -2056,8 +2031,7 @@ function warnOnce$1(message) {
|
|
|
2056
2031
|
warnings$1.add(message);
|
|
2057
2032
|
console.warn(message);
|
|
2058
2033
|
}
|
|
2059
|
-
|
|
2060
|
-
//#region src/configs/solid.ts
|
|
2034
|
+
// src/configs/solid.ts
|
|
2061
2035
|
async function solid(options = {}) {
|
|
2062
2036
|
const { files = [GLOB_JSX, GLOB_TSX], overrides = {}, typescript = true } = options;
|
|
2063
2037
|
await ensurePackages(["eslint-plugin-solid"]);
|
|
@@ -2106,8 +2080,7 @@ async function solid(options = {}) {
|
|
|
2106
2080
|
}
|
|
2107
2081
|
}];
|
|
2108
2082
|
}
|
|
2109
|
-
|
|
2110
|
-
//#region src/configs/sort.ts
|
|
2083
|
+
// src/configs/sort.ts
|
|
2111
2084
|
/**
|
|
2112
2085
|
* packageSortOrder
|
|
2113
2086
|
*
|
|
@@ -2377,8 +2350,7 @@ function sortTsconfig() {
|
|
|
2377
2350
|
] }
|
|
2378
2351
|
}];
|
|
2379
2352
|
}
|
|
2380
|
-
|
|
2381
|
-
//#region src/configs/storybook.ts
|
|
2353
|
+
// src/configs/storybook.ts
|
|
2382
2354
|
/**
|
|
2383
2355
|
* Storybook plugin for ESLint.
|
|
2384
2356
|
*
|
|
@@ -2410,8 +2382,7 @@ async function storybook(options = {}) {
|
|
|
2410
2382
|
}
|
|
2411
2383
|
}];
|
|
2412
2384
|
}
|
|
2413
|
-
|
|
2414
|
-
//#region src/configs/svelte.ts
|
|
2385
|
+
// src/configs/svelte.ts
|
|
2415
2386
|
async function svelte(options = {}) {
|
|
2416
2387
|
const { files = [GLOB_SVELTE], overrides = {}, stylistic = true } = options;
|
|
2417
2388
|
const { indent = 2, quotes = "single" } = typeof stylistic === "boolean" ? {} : stylistic;
|
|
@@ -2484,8 +2455,7 @@ async function svelte(options = {}) {
|
|
|
2484
2455
|
}
|
|
2485
2456
|
}];
|
|
2486
2457
|
}
|
|
2487
|
-
|
|
2488
|
-
//#region src/configs/tailwindcss.ts
|
|
2458
|
+
// src/configs/tailwindcss.ts
|
|
2489
2459
|
const defaultEntryPointCandidates = [
|
|
2490
2460
|
"src/styles/global.css",
|
|
2491
2461
|
"src/styles/globals.css",
|
|
@@ -2778,8 +2748,7 @@ function warnOnce(message) {
|
|
|
2778
2748
|
warnings.add(message);
|
|
2779
2749
|
console.warn(message);
|
|
2780
2750
|
}
|
|
2781
|
-
|
|
2782
|
-
//#region src/configs/test.ts
|
|
2751
|
+
// src/configs/test.ts
|
|
2783
2752
|
let _pluginTest;
|
|
2784
2753
|
async function test(options = {}) {
|
|
2785
2754
|
const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
|
|
@@ -2815,8 +2784,7 @@ async function test(options = {}) {
|
|
|
2815
2784
|
}
|
|
2816
2785
|
}];
|
|
2817
2786
|
}
|
|
2818
|
-
|
|
2819
|
-
//#region src/configs/toml.ts
|
|
2787
|
+
// src/configs/toml.ts
|
|
2820
2788
|
async function toml(options = {}) {
|
|
2821
2789
|
const { files = [GLOB_TOML], overrides = {}, stylistic = true } = options;
|
|
2822
2790
|
const { indent = 2 } = typeof stylistic === "boolean" ? {} : stylistic;
|
|
@@ -2858,8 +2826,7 @@ async function toml(options = {}) {
|
|
|
2858
2826
|
}
|
|
2859
2827
|
}];
|
|
2860
2828
|
}
|
|
2861
|
-
|
|
2862
|
-
//#region src/configs/typescript.ts
|
|
2829
|
+
// src/configs/typescript.ts
|
|
2863
2830
|
const TypeScriptRuleRenames = { "@typescript-eslint": "ts" };
|
|
2864
2831
|
const configuredRules = /* @__PURE__ */ new Set([
|
|
2865
2832
|
"no-dupe-class-members",
|
|
@@ -3049,8 +3016,7 @@ async function typescript(options = {}) {
|
|
|
3049
3016
|
function renamePresetRules(rules, omittedRules) {
|
|
3050
3017
|
return Object.fromEntries(Object.entries(renameRules(rules, TypeScriptRuleRenames)).filter(([rule]) => !omittedRules.has(rule)));
|
|
3051
3018
|
}
|
|
3052
|
-
|
|
3053
|
-
//#region src/configs/unicorn.ts
|
|
3019
|
+
// src/configs/unicorn.ts
|
|
3054
3020
|
async function unicorn(options = {}) {
|
|
3055
3021
|
const { allRecommended = false, overrides = {} } = options;
|
|
3056
3022
|
return [{
|
|
@@ -3078,8 +3044,7 @@ async function unicorn(options = {}) {
|
|
|
3078
3044
|
}
|
|
3079
3045
|
}];
|
|
3080
3046
|
}
|
|
3081
|
-
|
|
3082
|
-
//#region src/configs/unocss.ts
|
|
3047
|
+
// src/configs/unocss.ts
|
|
3083
3048
|
async function unocss(options = {}) {
|
|
3084
3049
|
const { attributify = true, strict = false } = options;
|
|
3085
3050
|
await ensurePackages(["@unocss/eslint-plugin"]);
|
|
@@ -3094,8 +3059,7 @@ async function unocss(options = {}) {
|
|
|
3094
3059
|
}
|
|
3095
3060
|
}];
|
|
3096
3061
|
}
|
|
3097
|
-
|
|
3098
|
-
//#region src/configs/vue.ts
|
|
3062
|
+
// src/configs/vue.ts
|
|
3099
3063
|
async function vue(options = {}) {
|
|
3100
3064
|
const { a11y = false, files = [GLOB_VUE], overrides = {}, stylistic = true, vueVersion = 3 } = options;
|
|
3101
3065
|
const sfcBlocks = options.sfcBlocks === true ? {} : options.sfcBlocks ?? {};
|
|
@@ -3299,8 +3263,7 @@ async function vue(options = {}) {
|
|
|
3299
3263
|
}
|
|
3300
3264
|
}];
|
|
3301
3265
|
}
|
|
3302
|
-
|
|
3303
|
-
//#region src/configs/yaml.ts
|
|
3266
|
+
// src/configs/yaml.ts
|
|
3304
3267
|
async function yaml(options = {}) {
|
|
3305
3268
|
const { files = [GLOB_YAML], overrides = {}, stylistic = true } = options;
|
|
3306
3269
|
const { indent = 2, quotes = "single" } = typeof stylistic === "boolean" ? {} : stylistic;
|
|
@@ -3377,8 +3340,7 @@ async function yaml(options = {}) {
|
|
|
3377
3340
|
}
|
|
3378
3341
|
];
|
|
3379
3342
|
}
|
|
3380
|
-
|
|
3381
|
-
//#region src/factory.ts
|
|
3343
|
+
// src/factory.ts
|
|
3382
3344
|
const flatConfigProps = [
|
|
3383
3345
|
"name",
|
|
3384
3346
|
"languageOptions",
|
|
@@ -3581,8 +3543,7 @@ function getOverrides(options, key) {
|
|
|
3581
3543
|
function resolveSubOptions(options, key) {
|
|
3582
3544
|
return typeof options[key] === "boolean" ? {} : options[key] || {};
|
|
3583
3545
|
}
|
|
3584
|
-
|
|
3585
|
-
//#region src/config-presets.ts
|
|
3546
|
+
// src/config-presets.ts
|
|
3586
3547
|
const CONFIG_PRESET_FULL_ON = {
|
|
3587
3548
|
astro: true,
|
|
3588
3549
|
formatters: true,
|
|
@@ -3649,5 +3610,4 @@ const CONFIG_PRESET_FULL_OFF = {
|
|
|
3649
3610
|
vue: false,
|
|
3650
3611
|
yaml: false
|
|
3651
3612
|
};
|
|
3652
|
-
//#endregion
|
|
3653
3613
|
export { CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SANITY, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, PACKAGE_NAME, StylisticConfigDefaults, astro, combine, command, comments, config, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, medusa, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, shadcn, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infernodesign/eslint-config",
|
|
3
3
|
"description": "ESLint config for Inferno Design.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.17.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "bun run gen && tsdown --clean --dts",
|
|
42
42
|
"build:inspect": "bun run build && bunx @eslint/config-inspector build",
|
|
43
|
+
"bumpp": "bun ../../scripts/bumpp.ts",
|
|
43
44
|
"dev": "tsdown --watch",
|
|
44
45
|
"gen": "bun run scripts/typegen.ts && bun run scripts/versiongen.ts",
|
|
45
46
|
"lint": "eslint --quiet",
|
|
@@ -57,32 +58,32 @@
|
|
|
57
58
|
"@eslint/config-helpers": "^0.7.0",
|
|
58
59
|
"@eslint/markdown": "^8.0.3",
|
|
59
60
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.72.
|
|
61
|
-
"@typescript-eslint/parser": "^8.72.
|
|
62
|
-
"@typescript-eslint/utils": "^8.72.
|
|
63
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.72.1",
|
|
62
|
+
"@typescript-eslint/parser": "^8.72.1",
|
|
63
|
+
"@typescript-eslint/utils": "^8.72.1",
|
|
64
|
+
"@vitest/eslint-plugin": "^1.6.28",
|
|
64
65
|
"ansis": "^4.4.0",
|
|
65
66
|
"cac": "^7.1.0",
|
|
66
67
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
67
68
|
"eslint-flat-config-utils": "^3.2.0",
|
|
68
69
|
"eslint-merge-processors": "^2.0.0",
|
|
69
|
-
"eslint-plugin-antfu": "^3.
|
|
70
|
+
"eslint-plugin-antfu": "^3.3.1",
|
|
70
71
|
"eslint-plugin-command": "^4.0.0",
|
|
71
72
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
72
|
-
"eslint-plugin-jsdoc": "^65.4.
|
|
73
|
+
"eslint-plugin-jsdoc": "^65.4.2",
|
|
73
74
|
"eslint-plugin-jsonc": "^3.4.2",
|
|
74
75
|
"eslint-plugin-n": "^18.5.0",
|
|
75
76
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
76
77
|
"eslint-plugin-perfectionist": "^5.13.0",
|
|
77
78
|
"eslint-plugin-pnpm": "^1.9.1",
|
|
78
|
-
"eslint-plugin-regexp": "^3.3.
|
|
79
|
+
"eslint-plugin-regexp": "^3.3.3",
|
|
79
80
|
"eslint-plugin-toml": "^1.5.0",
|
|
80
|
-
"eslint-plugin-unicorn": "^
|
|
81
|
+
"eslint-plugin-unicorn": "^79.0.0",
|
|
81
82
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
82
|
-
"eslint-plugin-vue": "^10.
|
|
83
|
+
"eslint-plugin-vue": "^10.12.0",
|
|
83
84
|
"eslint-plugin-yml": "^3.9.0",
|
|
84
85
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
85
|
-
"globals": "^17.
|
|
86
|
+
"globals": "^17.14.0",
|
|
86
87
|
"jsonc-eslint-parser": "^3.3.0",
|
|
87
88
|
"local-pkg": "^1.2.1",
|
|
88
89
|
"parse-gitignore": "^2.0.0",
|
|
@@ -91,20 +92,20 @@
|
|
|
91
92
|
"yaml-eslint-parser": "^2.1.0"
|
|
92
93
|
},
|
|
93
94
|
"devDependencies": {
|
|
94
|
-
"@eslint-react/eslint-plugin": "^5.28.
|
|
95
|
+
"@eslint-react/eslint-plugin": "^5.28.8",
|
|
95
96
|
"@eslint/config-inspector": "^3.5.0",
|
|
96
97
|
"@infernodesign/typescript-config": "workspace:*",
|
|
97
|
-
"@medusajs/eslint-plugin": "^2.
|
|
98
|
-
"@next/eslint-plugin-next": "^16.4.
|
|
98
|
+
"@medusajs/eslint-plugin": "^2.22.2",
|
|
99
|
+
"@next/eslint-plugin-next": "^16.4.3",
|
|
99
100
|
"@prettier/plugin-xml": "^3.4.2",
|
|
100
|
-
"@sanity-labs/eslint-plugin": "^1.0.
|
|
101
|
+
"@sanity-labs/eslint-plugin": "^1.0.7",
|
|
101
102
|
"@shadcn/lint": "^0.2.3",
|
|
102
103
|
"@types/bun": "^1.4.4",
|
|
103
104
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
104
|
-
"@types/node": "^26.6.
|
|
105
|
-
"@unocss/eslint-plugin": "^66.
|
|
105
|
+
"@types/node": "^26.6.6",
|
|
106
|
+
"@unocss/eslint-plugin": "^66.12.0",
|
|
106
107
|
"astro-eslint-parser": "^3.2.0",
|
|
107
|
-
"eslint": "^10.
|
|
108
|
+
"eslint": "^10.14.0",
|
|
108
109
|
"eslint-plugin-astro": "^3.2.1",
|
|
109
110
|
"eslint-plugin-better-tailwindcss": "^4.10.0",
|
|
110
111
|
"eslint-plugin-erasable-syntax-only": "^0.7.2",
|
|
@@ -112,34 +113,34 @@
|
|
|
112
113
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
113
114
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
114
115
|
"eslint-plugin-solid": "^0.18.1",
|
|
115
|
-
"eslint-plugin-storybook": "^10.6.
|
|
116
|
+
"eslint-plugin-storybook": "^10.6.5",
|
|
116
117
|
"eslint-plugin-svelte": "^3.23.1",
|
|
117
|
-
"eslint-plugin-vuejs-accessibility": "^2.6.
|
|
118
|
-
"eslint-typegen": "^2.3.
|
|
119
|
-
"execa": "^10.2.
|
|
118
|
+
"eslint-plugin-vuejs-accessibility": "^2.6.3",
|
|
119
|
+
"eslint-typegen": "^2.3.2",
|
|
120
|
+
"execa": "^10.2.1",
|
|
120
121
|
"find-up-simple": "^1.0.1",
|
|
121
122
|
"jiti": "^2.7.0",
|
|
122
123
|
"pnpm-workspace-yaml": "^1.9.1",
|
|
123
|
-
"prettier-plugin-astro": "^1.1.
|
|
124
|
+
"prettier-plugin-astro": "^1.1.2",
|
|
124
125
|
"prettier-plugin-slidev": "^1.0.5",
|
|
125
|
-
"svelte": "^5.57.
|
|
126
|
-
"svelte-eslint-parser": "^1.
|
|
126
|
+
"svelte": "^5.57.3",
|
|
127
|
+
"svelte-eslint-parser": "^1.10.0",
|
|
127
128
|
"tinyglobby": "^0.2.17",
|
|
128
|
-
"tsdown": "^0.23.
|
|
129
|
+
"tsdown": "^0.23.4",
|
|
129
130
|
"typescript": "^6.0.3",
|
|
130
131
|
"vitest": "^5.0.5",
|
|
131
132
|
"vue": "^3.5.44"
|
|
132
133
|
},
|
|
133
134
|
"peerDependencies": {
|
|
134
|
-
"@eslint-react/eslint-plugin": "^5.28.
|
|
135
|
-
"@medusajs/eslint-plugin": "^2.
|
|
136
|
-
"@next/eslint-plugin-next": "^16.4.
|
|
135
|
+
"@eslint-react/eslint-plugin": "^5.28.8",
|
|
136
|
+
"@medusajs/eslint-plugin": "^2.22.2",
|
|
137
|
+
"@next/eslint-plugin-next": "^16.4.3",
|
|
137
138
|
"@prettier/plugin-xml": "^3.4.2",
|
|
138
|
-
"@sanity-labs/eslint-plugin": "^1.0.
|
|
139
|
+
"@sanity-labs/eslint-plugin": "^1.0.7",
|
|
139
140
|
"@shadcn/lint": "^0.2.3",
|
|
140
|
-
"@unocss/eslint-plugin": "^66.
|
|
141
|
+
"@unocss/eslint-plugin": "^66.12.0",
|
|
141
142
|
"astro-eslint-parser": "^3.2.0",
|
|
142
|
-
"eslint": "^10.
|
|
143
|
+
"eslint": "^10.14.0",
|
|
143
144
|
"eslint-plugin-astro": "^3.2.1",
|
|
144
145
|
"eslint-plugin-better-tailwindcss": "^4.10.0",
|
|
145
146
|
"eslint-plugin-erasable-syntax-only": "^0.7.2",
|
|
@@ -147,12 +148,12 @@
|
|
|
147
148
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
148
149
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
149
150
|
"eslint-plugin-solid": "^0.18.1",
|
|
150
|
-
"eslint-plugin-storybook": "^10.6.
|
|
151
|
+
"eslint-plugin-storybook": "^10.6.5",
|
|
151
152
|
"eslint-plugin-svelte": "^3.23.1",
|
|
152
|
-
"eslint-plugin-vuejs-accessibility": "^2.6.
|
|
153
|
-
"prettier-plugin-astro": "^1.1.
|
|
153
|
+
"eslint-plugin-vuejs-accessibility": "^2.6.3",
|
|
154
|
+
"prettier-plugin-astro": "^1.1.2",
|
|
154
155
|
"prettier-plugin-slidev": "^1.0.5",
|
|
155
|
-
"svelte-eslint-parser": "^1.
|
|
156
|
+
"svelte-eslint-parser": "^1.10.0"
|
|
156
157
|
},
|
|
157
158
|
"peerDependenciesMeta": {
|
|
158
159
|
"@eslint-react/eslint-plugin": {
|