@infernodesign/eslint-config 2.8.0 → 2.10.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/README.md +81 -1
- package/dist/cli.js +33 -28
- package/dist/index.d.ts +1491 -224
- package/dist/index.js +129 -18
- package/package.json +48 -43
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as PACKAGE_NAME } from "./constants-BxEizS7D.js";
|
|
2
2
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
|
-
import fs
|
|
6
|
+
import fs, { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { isPackageExists } from "local-pkg";
|
|
9
9
|
import createCommand from "eslint-plugin-command/config";
|
|
@@ -28,7 +28,7 @@ async function findUp(name, { cwd = process$1.cwd(), type = "file", stopAt } = {
|
|
|
28
28
|
while (directory) {
|
|
29
29
|
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
30
30
|
try {
|
|
31
|
-
const stats = await
|
|
31
|
+
const stats = await fsPromises.stat(filePath);
|
|
32
32
|
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) return filePath;
|
|
33
33
|
} catch {}
|
|
34
34
|
if (directory === stopAt || directory === root) break;
|
|
@@ -43,7 +43,7 @@ function findUpSync(name, { cwd = process$1.cwd(), type = "file", stopAt } = {})
|
|
|
43
43
|
while (directory) {
|
|
44
44
|
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
45
45
|
try {
|
|
46
|
-
const stats = fs
|
|
46
|
+
const stats = fs.statSync(filePath, { throwIfNoEntry: false });
|
|
47
47
|
if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) return filePath;
|
|
48
48
|
} catch {}
|
|
49
49
|
if (directory === stopAt || directory === root) break;
|
|
@@ -80,6 +80,11 @@ const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
|
80
80
|
const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
81
81
|
const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
82
82
|
const GLOB_STORYBOOK = ["**/*.mdx", `**/*.stories.${GLOB_SRC}`];
|
|
83
|
+
const GLOB_SANITY = [
|
|
84
|
+
GLOB_SRC,
|
|
85
|
+
GLOB_ASTRO,
|
|
86
|
+
GLOB_SVELTE
|
|
87
|
+
];
|
|
83
88
|
const GLOB_TESTS = [
|
|
84
89
|
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
85
90
|
`**/tests/**/*.${GLOB_SRC_EXT}`,
|
|
@@ -160,7 +165,7 @@ const GLOB_EXCLUDE = [
|
|
|
160
165
|
"**/vendor",
|
|
161
166
|
"**/yarn.lock"
|
|
162
167
|
];
|
|
163
|
-
const GLOB_SEARCH_EXCLUDE = new Set([
|
|
168
|
+
const GLOB_SEARCH_EXCLUDE = /* @__PURE__ */ new Set([
|
|
164
169
|
"__snapshots__",
|
|
165
170
|
"_bmad",
|
|
166
171
|
"_bmad-*",
|
|
@@ -670,7 +675,7 @@ async function formatters(options = {}, stylistic = {}) {
|
|
|
670
675
|
tabWidth: typeof indent === "number" ? indent : 2,
|
|
671
676
|
trailingComma: "all",
|
|
672
677
|
useTabs: indent === "tab"
|
|
673
|
-
}, options.prettierOptions
|
|
678
|
+
}, options.prettierOptions ?? {});
|
|
674
679
|
const prettierXmlOptions = {
|
|
675
680
|
xmlQuoteAttributes: "double",
|
|
676
681
|
xmlSelfClosingSpace: true,
|
|
@@ -681,7 +686,7 @@ async function formatters(options = {}, stylistic = {}) {
|
|
|
681
686
|
indentWidth: typeof indent === "number" ? indent : 2,
|
|
682
687
|
quoteStyle: quotes === "single" ? "preferSingle" : "preferDouble",
|
|
683
688
|
useTabs: indent === "tab",
|
|
684
|
-
...options.dprintOptions
|
|
689
|
+
...options.dprintOptions ?? {}
|
|
685
690
|
};
|
|
686
691
|
const configs = [{
|
|
687
692
|
name: "config/formatter/setup",
|
|
@@ -796,7 +801,7 @@ function mergePrettierOptions(options, overrides) {
|
|
|
796
801
|
return {
|
|
797
802
|
...options,
|
|
798
803
|
...overrides,
|
|
799
|
-
plugins: [...overrides.plugins
|
|
804
|
+
plugins: [...overrides.plugins ?? [], ...options.plugins ?? []]
|
|
800
805
|
};
|
|
801
806
|
}
|
|
802
807
|
//#endregion
|
|
@@ -1760,7 +1765,7 @@ async function pnpm(options) {
|
|
|
1760
1765
|
async function detectCatalogUsage() {
|
|
1761
1766
|
const workspaceFile = await findUp("pnpm-workspace.yaml");
|
|
1762
1767
|
if (!workspaceFile) return false;
|
|
1763
|
-
const yaml = await
|
|
1768
|
+
const yaml = await fsPromises.readFile(workspaceFile, "utf-8");
|
|
1764
1769
|
return yaml.includes("catalog:") || yaml.includes("catalogs:");
|
|
1765
1770
|
}
|
|
1766
1771
|
//#endregion
|
|
@@ -1868,6 +1873,51 @@ async function regexp(options = {}) {
|
|
|
1868
1873
|
}];
|
|
1869
1874
|
}
|
|
1870
1875
|
//#endregion
|
|
1876
|
+
//#region src/configs/sanity.ts
|
|
1877
|
+
const SanityPluginName = "@sanity-labs/eslint-plugin";
|
|
1878
|
+
async function sanity(options = {}) {
|
|
1879
|
+
const { files = GLOB_SANITY, overrides = {}, preset = "recommended" } = options;
|
|
1880
|
+
if (!isPackageExists(SanityPluginName)) return [];
|
|
1881
|
+
await ensurePackages([SanityPluginName]);
|
|
1882
|
+
const pluginSanity = await interopDefault(import(SanityPluginName));
|
|
1883
|
+
const presetConfigs = pluginSanity.configs[preset];
|
|
1884
|
+
if (!presetConfigs) throw new Error(`Failed to find config ${preset} in ${SanityPluginName}`);
|
|
1885
|
+
const settings = resolveSanitySettings(options);
|
|
1886
|
+
return [{
|
|
1887
|
+
name: "config/sanity/setup",
|
|
1888
|
+
plugins: { sanity: pluginSanity },
|
|
1889
|
+
...settings ? { settings } : {}
|
|
1890
|
+
}, ...presetConfigs.map(({ plugins: _plugins, ...config }, index) => {
|
|
1891
|
+
const mergedSettings = mergeSanitySettings(config.settings, settings);
|
|
1892
|
+
return {
|
|
1893
|
+
...config,
|
|
1894
|
+
files,
|
|
1895
|
+
name: index === 0 ? "config/sanity/rules" : `config/sanity/rules/${index}`,
|
|
1896
|
+
rules: {
|
|
1897
|
+
...normalizeRules(config.rules ?? {}),
|
|
1898
|
+
...index === presetConfigs.length - 1 ? overrides : {}
|
|
1899
|
+
},
|
|
1900
|
+
...mergedSettings ? { settings: mergedSettings } : {}
|
|
1901
|
+
};
|
|
1902
|
+
})];
|
|
1903
|
+
}
|
|
1904
|
+
function resolveSanitySettings(options) {
|
|
1905
|
+
if (!options.schemaPath) return;
|
|
1906
|
+
const cwd = path.resolve(process.cwd(), options.cwd ?? ".");
|
|
1907
|
+
return { sanity: { schemaPath: path.isAbsolute(options.schemaPath) ? options.schemaPath : path.resolve(cwd, options.schemaPath) } };
|
|
1908
|
+
}
|
|
1909
|
+
function mergeSanitySettings(existing, next) {
|
|
1910
|
+
if (!existing) return next;
|
|
1911
|
+
if (!next) return existing;
|
|
1912
|
+
return {
|
|
1913
|
+
...existing,
|
|
1914
|
+
sanity: {
|
|
1915
|
+
...existing.sanity,
|
|
1916
|
+
...next.sanity
|
|
1917
|
+
}
|
|
1918
|
+
};
|
|
1919
|
+
}
|
|
1920
|
+
//#endregion
|
|
1871
1921
|
//#region src/configs/solid.ts
|
|
1872
1922
|
async function solid(options = {}) {
|
|
1873
1923
|
const { files = [GLOB_JSX, GLOB_TSX], overrides = {}, typescript = true } = options;
|
|
@@ -2335,7 +2385,7 @@ const defaultEntryPointCandidates = [
|
|
|
2335
2385
|
"index.css",
|
|
2336
2386
|
"style.css"
|
|
2337
2387
|
];
|
|
2338
|
-
const entryPointCandidateFileNames = new Set([
|
|
2388
|
+
const entryPointCandidateFileNames = /* @__PURE__ */ new Set([
|
|
2339
2389
|
"app.css",
|
|
2340
2390
|
"global.css",
|
|
2341
2391
|
"globals.css",
|
|
@@ -2668,6 +2718,37 @@ async function toml(options = {}) {
|
|
|
2668
2718
|
}
|
|
2669
2719
|
//#endregion
|
|
2670
2720
|
//#region src/configs/typescript.ts
|
|
2721
|
+
const TypeScriptRuleRenames = { "@typescript-eslint": "ts" };
|
|
2722
|
+
const configuredRules = /* @__PURE__ */ new Set([
|
|
2723
|
+
"no-dupe-class-members",
|
|
2724
|
+
"no-redeclare",
|
|
2725
|
+
"no-unused-vars",
|
|
2726
|
+
"no-use-before-define",
|
|
2727
|
+
"no-useless-constructor",
|
|
2728
|
+
"ts/ban-ts-comment",
|
|
2729
|
+
"ts/consistent-type-definitions",
|
|
2730
|
+
"ts/consistent-type-imports",
|
|
2731
|
+
"ts/method-signature-style",
|
|
2732
|
+
"ts/no-dupe-class-members",
|
|
2733
|
+
"ts/no-dynamic-delete",
|
|
2734
|
+
"ts/no-empty-object-type",
|
|
2735
|
+
"ts/no-explicit-any",
|
|
2736
|
+
"ts/no-extraneous-class",
|
|
2737
|
+
"ts/no-import-type-side-effects",
|
|
2738
|
+
"ts/no-inferrable-types",
|
|
2739
|
+
"ts/no-invalid-void-type",
|
|
2740
|
+
"ts/no-non-null-assertion",
|
|
2741
|
+
"ts/no-redeclare",
|
|
2742
|
+
"ts/no-require-imports",
|
|
2743
|
+
"ts/no-unused-expressions",
|
|
2744
|
+
"ts/no-unused-vars",
|
|
2745
|
+
"ts/no-use-before-define",
|
|
2746
|
+
"ts/no-useless-constructor",
|
|
2747
|
+
"ts/no-wrapper-object-types",
|
|
2748
|
+
"ts/triple-slash-reference",
|
|
2749
|
+
"ts/unified-signatures"
|
|
2750
|
+
]);
|
|
2751
|
+
const configuredTypeAwareRules = /* @__PURE__ */ new Set(["dot-notation", "ts/dot-notation"]);
|
|
2671
2752
|
async function typescript(options = {}) {
|
|
2672
2753
|
const { componentExts = [], erasableOnly = false, overrides = {}, overridesTypeAware = {}, parserOptions = {}, strict = false, type = "app" } = options;
|
|
2673
2754
|
const files = options.files ?? [
|
|
@@ -2677,20 +2758,24 @@ async function typescript(options = {}) {
|
|
|
2677
2758
|
];
|
|
2678
2759
|
const filesTypeAware = options.filesTypeAware ?? ["**/*.?([cm])ts", "**/*.?([cm])tsx"];
|
|
2679
2760
|
const ignoresTypeAware = options.ignoresTypeAware ?? [`**/*.md/**`, "**/*.astro/*.ts"];
|
|
2680
|
-
const tsconfigPath = options
|
|
2761
|
+
const tsconfigPath = options.tsconfigPath ?? void 0;
|
|
2681
2762
|
const isTypeAware = !!tsconfigPath;
|
|
2763
|
+
const isStrict = strict ?? false;
|
|
2764
|
+
const [pluginTs, parserTs] = await Promise.all([interopDefault(import("@typescript-eslint/eslint-plugin")), interopDefault(import("@typescript-eslint/parser"))]);
|
|
2682
2765
|
const typeAwareRules = {
|
|
2766
|
+
...renamePresetRules(pluginTs.configs["stylistic-type-checked-only"]?.rules ?? {}, configuredTypeAwareRules),
|
|
2683
2767
|
"dot-notation": "off",
|
|
2684
2768
|
"no-implied-eval": "off",
|
|
2685
2769
|
"ts/await-thenable": "error",
|
|
2686
2770
|
"ts/dot-notation": ["error", { allowKeywords: true }],
|
|
2771
|
+
"ts/prefer-nullish-coalescing": ["error", { ignorePrimitives: true }],
|
|
2687
2772
|
"ts/promise-function-async": "error",
|
|
2688
2773
|
"ts/restrict-plus-operands": "error",
|
|
2689
2774
|
"ts/restrict-template-expressions": "error",
|
|
2690
2775
|
"ts/return-await": ["error", "in-try-catch"],
|
|
2691
2776
|
"ts/switch-exhaustiveness-check": "error",
|
|
2692
2777
|
"ts/unbound-method": "error",
|
|
2693
|
-
...
|
|
2778
|
+
...isStrict ? {
|
|
2694
2779
|
"ts/no-floating-promises": "error",
|
|
2695
2780
|
"ts/no-for-in-array": "error",
|
|
2696
2781
|
"ts/no-implied-eval": "error",
|
|
@@ -2707,7 +2792,6 @@ async function typescript(options = {}) {
|
|
|
2707
2792
|
}]
|
|
2708
2793
|
} : {}
|
|
2709
2794
|
};
|
|
2710
|
-
const [pluginTs, parserTs] = await Promise.all([interopDefault(import("@typescript-eslint/eslint-plugin")), interopDefault(import("@typescript-eslint/parser"))]);
|
|
2711
2795
|
function makeParser(typeAware, files, ignores) {
|
|
2712
2796
|
return {
|
|
2713
2797
|
files,
|
|
@@ -2743,10 +2827,12 @@ async function typescript(options = {}) {
|
|
|
2743
2827
|
files,
|
|
2744
2828
|
name: "config/typescript/rules",
|
|
2745
2829
|
rules: {
|
|
2746
|
-
...
|
|
2747
|
-
...
|
|
2830
|
+
...renamePresetRules(pluginTs.configs["eslint-recommended"]?.overrides?.[0]?.rules ?? {}, configuredRules),
|
|
2831
|
+
...renamePresetRules(pluginTs.configs.strict?.rules ?? {}, configuredRules),
|
|
2832
|
+
...renamePresetRules(pluginTs.configs.stylistic?.rules ?? {}, configuredRules),
|
|
2748
2833
|
"no-dupe-class-members": "off",
|
|
2749
2834
|
"no-redeclare": "off",
|
|
2835
|
+
"no-unused-vars": "off",
|
|
2750
2836
|
"no-use-before-define": "off",
|
|
2751
2837
|
"no-useless-constructor": "off",
|
|
2752
2838
|
"ts/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
|
|
@@ -2763,6 +2849,10 @@ async function typescript(options = {}) {
|
|
|
2763
2849
|
"ts/no-explicit-any": "off",
|
|
2764
2850
|
"ts/no-extraneous-class": "off",
|
|
2765
2851
|
"ts/no-import-type-side-effects": "error",
|
|
2852
|
+
"ts/no-inferrable-types": ["error", {
|
|
2853
|
+
ignoreParameters: true,
|
|
2854
|
+
ignoreProperties: true
|
|
2855
|
+
}],
|
|
2766
2856
|
"ts/no-invalid-void-type": "off",
|
|
2767
2857
|
"ts/no-non-null-assertion": "off",
|
|
2768
2858
|
"ts/no-redeclare": ["error", { builtinGlobals: false }],
|
|
@@ -2772,7 +2862,16 @@ async function typescript(options = {}) {
|
|
|
2772
2862
|
allowTaggedTemplates: true,
|
|
2773
2863
|
allowTernary: true
|
|
2774
2864
|
}],
|
|
2775
|
-
"ts/no-unused-vars": "
|
|
2865
|
+
"ts/no-unused-vars": ["error", {
|
|
2866
|
+
args: "all",
|
|
2867
|
+
argsIgnorePattern: "^_",
|
|
2868
|
+
caughtErrors: "all",
|
|
2869
|
+
caughtErrorsIgnorePattern: "^_",
|
|
2870
|
+
destructuredArrayIgnorePattern: "^_",
|
|
2871
|
+
varsIgnorePattern: "^_",
|
|
2872
|
+
ignoreRestSiblings: true,
|
|
2873
|
+
enableAutofixRemoval: { imports: true }
|
|
2874
|
+
}],
|
|
2776
2875
|
"ts/no-use-before-define": ["error", {
|
|
2777
2876
|
classes: false,
|
|
2778
2877
|
functions: false,
|
|
@@ -2811,6 +2910,9 @@ async function typescript(options = {}) {
|
|
|
2811
2910
|
}] : []
|
|
2812
2911
|
];
|
|
2813
2912
|
}
|
|
2913
|
+
function renamePresetRules(rules, omittedRules) {
|
|
2914
|
+
return Object.fromEntries(Object.entries(renameRules(rules, TypeScriptRuleRenames)).filter(([rule]) => !omittedRules.has(rule)));
|
|
2915
|
+
}
|
|
2814
2916
|
//#endregion
|
|
2815
2917
|
//#region src/configs/unicorn.ts
|
|
2816
2918
|
async function unicorn(options = {}) {
|
|
@@ -3180,7 +3282,7 @@ const defaultPluginRenaming = {
|
|
|
3180
3282
|
* The merged ESLint configurations.
|
|
3181
3283
|
*/
|
|
3182
3284
|
function config(options = {}, ...userConfigs) {
|
|
3183
|
-
const { astro: enableAstro = false, autoRenamePlugins = true, componentExts = [], e18e: enableE18e = true, gitignore: enableGitignore = true, ignores: userIgnores = [], imports: enableImports = true, jsdoc: enableJSDoc = false, jsx: enableJsx = true, nextjs: enableNextjs = false, pnpm: enableCatalogs = !!findUpSync("pnpm-workspace.yaml"), react: enableReact = false, regexp: enableRegexp = true, solid: enableSolid = false, storybook: enableStorybook = false, svelte: enableSvelte = false, tailwindcss: enableTailwindcss = false, typescript: enableTypeScript = isPackageExists("typescript"), unicorn: enableUnicorn = true, unocss: enableUnoCSS = false, vue: enableVue = VuePackages.some((i) => isPackageExists(i)) } = options;
|
|
3285
|
+
const { astro: enableAstro = false, autoRenamePlugins = true, componentExts = [], e18e: enableE18e = true, gitignore: enableGitignore = true, ignores: userIgnores = [], imports: enableImports = true, jsdoc: enableJSDoc = false, jsx: enableJsx = true, nextjs: enableNextjs = false, pnpm: enableCatalogs = !!findUpSync("pnpm-workspace.yaml"), react: enableReact = false, regexp: enableRegexp = true, sanity: enableSanity = false, solid: enableSolid = false, storybook: enableStorybook = false, svelte: enableSvelte = false, tailwindcss: enableTailwindcss = false, typescript: enableTypeScript = isPackageExists("typescript"), unicorn: enableUnicorn = true, unocss: enableUnoCSS = false, vue: enableVue = VuePackages.some((i) => isPackageExists(i)) } = options;
|
|
3184
3286
|
let isInEditor = options.isInEditor;
|
|
3185
3287
|
if (isInEditor == null) {
|
|
3186
3288
|
isInEditor = isInEditorEnv();
|
|
@@ -3230,6 +3332,10 @@ function config(options = {}, ...userConfigs) {
|
|
|
3230
3332
|
overrides: getOverrides(options, "stylistic")
|
|
3231
3333
|
}));
|
|
3232
3334
|
if (enableRegexp) configs.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
|
|
3335
|
+
if (enableSanity) configs.push(sanity({
|
|
3336
|
+
...resolveSubOptions(options, "sanity"),
|
|
3337
|
+
overrides: getOverrides(options, "sanity")
|
|
3338
|
+
}));
|
|
3233
3339
|
if (enableTailwindcss) {
|
|
3234
3340
|
const tailwindcssOptions = resolveSubOptions(options, "tailwindcss");
|
|
3235
3341
|
configs.push(tailwindcss({
|
|
@@ -3342,6 +3448,10 @@ const CONFIG_PRESET_FULL_ON = {
|
|
|
3342
3448
|
pnpm: true,
|
|
3343
3449
|
react: { reactCompiler: true },
|
|
3344
3450
|
regexp: true,
|
|
3451
|
+
sanity: {
|
|
3452
|
+
preset: "strict",
|
|
3453
|
+
schemaPath: "schema.json"
|
|
3454
|
+
},
|
|
3345
3455
|
solid: true,
|
|
3346
3456
|
storybook: true,
|
|
3347
3457
|
stylistic: { experimental: true },
|
|
@@ -3372,6 +3482,7 @@ const CONFIG_PRESET_FULL_OFF = {
|
|
|
3372
3482
|
pnpm: false,
|
|
3373
3483
|
react: false,
|
|
3374
3484
|
regexp: false,
|
|
3485
|
+
sanity: false,
|
|
3375
3486
|
solid: false,
|
|
3376
3487
|
storybook: false,
|
|
3377
3488
|
stylistic: false,
|
|
@@ -3386,4 +3497,4 @@ const CONFIG_PRESET_FULL_OFF = {
|
|
|
3386
3497
|
yaml: false
|
|
3387
3498
|
};
|
|
3388
3499
|
//#endregion
|
|
3389
|
-
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_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, config as inferno, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
3500
|
+
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, config as inferno, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, 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.10.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@antfu/install-pkg": "1.1.0",
|
|
50
|
-
"@clack/prompts": "1.
|
|
51
|
-
"@e18e/eslint-plugin": "0.5.
|
|
50
|
+
"@clack/prompts": "1.7.0",
|
|
51
|
+
"@e18e/eslint-plugin": "0.5.1",
|
|
52
52
|
"@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
|
|
53
53
|
"@eslint/compat": "2.1.0",
|
|
54
54
|
"@eslint/config-array": "0.23.5",
|
|
55
55
|
"@eslint/config-helpers": "0.6.0",
|
|
56
|
-
"@eslint/markdown": "8.0.
|
|
56
|
+
"@eslint/markdown": "8.0.3",
|
|
57
57
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
59
|
-
"@typescript-eslint/parser": "8.
|
|
60
|
-
"@typescript-eslint/utils": "8.
|
|
61
|
-
"@vitest/eslint-plugin": "1.6.
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "8.62.1",
|
|
59
|
+
"@typescript-eslint/parser": "8.62.1",
|
|
60
|
+
"@typescript-eslint/utils": "8.62.1",
|
|
61
|
+
"@vitest/eslint-plugin": "1.6.21",
|
|
62
62
|
"ansis": "4.3.1",
|
|
63
63
|
"cac": "7.0.0",
|
|
64
64
|
"eslint-config-flat-gitignore": "2.3.0",
|
|
@@ -67,20 +67,20 @@
|
|
|
67
67
|
"eslint-plugin-antfu": "3.2.3",
|
|
68
68
|
"eslint-plugin-command": "3.5.2",
|
|
69
69
|
"eslint-plugin-import-lite": "0.6.0",
|
|
70
|
-
"eslint-plugin-jsdoc": "63.0.
|
|
70
|
+
"eslint-plugin-jsdoc": "63.0.11",
|
|
71
71
|
"eslint-plugin-jsonc": "3.2.0",
|
|
72
|
-
"eslint-plugin-n": "18.
|
|
72
|
+
"eslint-plugin-n": "18.2.1",
|
|
73
73
|
"eslint-plugin-no-only-tests": "3.4.0",
|
|
74
|
-
"eslint-plugin-perfectionist": "5.9.
|
|
74
|
+
"eslint-plugin-perfectionist": "5.9.1",
|
|
75
75
|
"eslint-plugin-pnpm": "1.6.1",
|
|
76
|
-
"eslint-plugin-regexp": "3.1.
|
|
76
|
+
"eslint-plugin-regexp": "3.1.1",
|
|
77
77
|
"eslint-plugin-toml": "1.4.0",
|
|
78
|
-
"eslint-plugin-unicorn": "
|
|
78
|
+
"eslint-plugin-unicorn": "70.0.0",
|
|
79
79
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
80
80
|
"eslint-plugin-vue": "10.9.2",
|
|
81
|
-
"eslint-plugin-yml": "3.
|
|
81
|
+
"eslint-plugin-yml": "3.5.0",
|
|
82
82
|
"eslint-processor-vue-blocks": "2.0.0",
|
|
83
|
-
"globals": "17.
|
|
83
|
+
"globals": "17.7.0",
|
|
84
84
|
"jsonc-eslint-parser": "3.1.0",
|
|
85
85
|
"local-pkg": "1.2.1",
|
|
86
86
|
"parse-gitignore": "2.0.0",
|
|
@@ -89,27 +89,28 @@
|
|
|
89
89
|
"yaml-eslint-parser": "2.0.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@eslint-react/eslint-plugin": "5.
|
|
92
|
+
"@eslint-react/eslint-plugin": "5.10.4",
|
|
93
93
|
"@eslint/config-inspector": "3.0.4",
|
|
94
94
|
"@infernodesign/typescript-config": "workspace:*",
|
|
95
|
-
"@next/eslint-plugin-next": "16.2.
|
|
95
|
+
"@next/eslint-plugin-next": "16.2.10",
|
|
96
96
|
"@prettier/plugin-xml": "3.4.2",
|
|
97
|
+
"@sanity-labs/eslint-plugin": "1.0.0",
|
|
97
98
|
"@types/bun": "1.3.14",
|
|
98
99
|
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
99
|
-
"@types/node": "
|
|
100
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
101
|
-
"@unocss/eslint-plugin": "66.7.
|
|
102
|
-
"astro-eslint-parser": "1.
|
|
103
|
-
"eslint": "10.
|
|
104
|
-
"eslint-plugin-astro": "1.
|
|
105
|
-
"eslint-plugin-better-tailwindcss": "4.
|
|
106
|
-
"eslint-plugin-erasable-syntax-only": "0.4.
|
|
100
|
+
"@types/node": "26.1.0",
|
|
101
|
+
"@typescript/native-preview": "7.0.0-dev.20260704.1",
|
|
102
|
+
"@unocss/eslint-plugin": "66.7.4",
|
|
103
|
+
"astro-eslint-parser": "2.1.0",
|
|
104
|
+
"eslint": "10.6.0",
|
|
105
|
+
"eslint-plugin-astro": "2.1.1",
|
|
106
|
+
"eslint-plugin-better-tailwindcss": "4.6.1",
|
|
107
|
+
"eslint-plugin-erasable-syntax-only": "0.4.2",
|
|
107
108
|
"eslint-plugin-format": "2.0.1",
|
|
108
109
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
109
|
-
"eslint-plugin-react-refresh": "0.5.
|
|
110
|
+
"eslint-plugin-react-refresh": "0.5.3",
|
|
110
111
|
"eslint-plugin-solid": "0.14.5",
|
|
111
|
-
"eslint-plugin-storybook": "10.4.
|
|
112
|
-
"eslint-plugin-svelte": "3.
|
|
112
|
+
"eslint-plugin-storybook": "10.4.6",
|
|
113
|
+
"eslint-plugin-svelte": "3.20.0",
|
|
113
114
|
"eslint-plugin-vuejs-accessibility": "2.5.0",
|
|
114
115
|
"eslint-typegen": "2.3.1",
|
|
115
116
|
"execa": "9.6.1",
|
|
@@ -118,30 +119,31 @@
|
|
|
118
119
|
"pnpm-workspace-yaml": "1.6.1",
|
|
119
120
|
"prettier-plugin-astro": "0.14.1",
|
|
120
121
|
"prettier-plugin-slidev": "1.0.5",
|
|
121
|
-
"svelte": "5.56.
|
|
122
|
+
"svelte": "5.56.4",
|
|
122
123
|
"svelte-eslint-parser": "1.8.0",
|
|
123
124
|
"tinyglobby": "0.2.17",
|
|
124
|
-
"tsdown": "0.22.
|
|
125
|
+
"tsdown": "0.22.3",
|
|
125
126
|
"typescript": "6.0.3",
|
|
126
|
-
"vitest": "4.1.
|
|
127
|
-
"vue": "3.5.
|
|
127
|
+
"vitest": "4.1.9",
|
|
128
|
+
"vue": "3.5.39"
|
|
128
129
|
},
|
|
129
130
|
"peerDependencies": {
|
|
130
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
131
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
131
|
+
"@eslint-react/eslint-plugin": "^5.10.4",
|
|
132
|
+
"@next/eslint-plugin-next": "^16.2.10",
|
|
132
133
|
"@prettier/plugin-xml": "^3.4.2",
|
|
133
|
-
"@
|
|
134
|
-
"
|
|
135
|
-
"eslint": "^
|
|
136
|
-
"eslint
|
|
137
|
-
"eslint-plugin-
|
|
138
|
-
"eslint-plugin-
|
|
134
|
+
"@sanity-labs/eslint-plugin": "^1.0.0",
|
|
135
|
+
"@unocss/eslint-plugin": "^66.7.4",
|
|
136
|
+
"astro-eslint-parser": "^2.1.0",
|
|
137
|
+
"eslint": "^10.6.0",
|
|
138
|
+
"eslint-plugin-astro": "^2.1.1",
|
|
139
|
+
"eslint-plugin-better-tailwindcss": "^4.6.1",
|
|
140
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.2",
|
|
139
141
|
"eslint-plugin-format": "^2.0.1",
|
|
140
142
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
141
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
143
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
142
144
|
"eslint-plugin-solid": "^0.14.5",
|
|
143
|
-
"eslint-plugin-storybook": "^10.4.
|
|
144
|
-
"eslint-plugin-svelte": "^3.
|
|
145
|
+
"eslint-plugin-storybook": "^10.4.6",
|
|
146
|
+
"eslint-plugin-svelte": "^3.20.0",
|
|
145
147
|
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
146
148
|
"prettier-plugin-astro": "^0.14.1",
|
|
147
149
|
"prettier-plugin-slidev": "^1.0.5",
|
|
@@ -157,6 +159,9 @@
|
|
|
157
159
|
"@prettier/plugin-xml": {
|
|
158
160
|
"optional": true
|
|
159
161
|
},
|
|
162
|
+
"@sanity-labs/eslint-plugin": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
160
165
|
"@unocss/eslint-plugin": {
|
|
161
166
|
"optional": true
|
|
162
167
|
},
|