@infernodesign/eslint-config 2.13.0 → 2.13.2
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 +13 -13
- package/dist/index.d.ts +822 -499
- package/dist/index.js +12 -9
- package/package.json +54 -54
package/dist/index.js
CHANGED
|
@@ -591,7 +591,7 @@ async function stylistic(options = {}) {
|
|
|
591
591
|
closingSlash: "never"
|
|
592
592
|
}],
|
|
593
593
|
"style/max-len": "off",
|
|
594
|
-
"style/max-statements-per-line":
|
|
594
|
+
"style/max-statements-per-line": "off",
|
|
595
595
|
"style/multiline-ternary": "off",
|
|
596
596
|
"style/no-mixed-spaces-and-tabs": "error",
|
|
597
597
|
"style/no-multi-spaces": ["error", { ignoreEOLComments: true }],
|
|
@@ -1830,6 +1830,7 @@ async function react(options = {}) {
|
|
|
1830
1830
|
name: "config/react/rules",
|
|
1831
1831
|
rules: {
|
|
1832
1832
|
...pluginReact.configs.recommended.rules,
|
|
1833
|
+
"react/static-components": "off",
|
|
1833
1834
|
"react-refresh/only-export-components": ["error", {
|
|
1834
1835
|
allowConstantExport: isAllowConstantExport,
|
|
1835
1836
|
allowExportNames: [...isUsingNext ? [
|
|
@@ -3305,14 +3306,16 @@ function config(options = {}, ...userConfigs) {
|
|
|
3305
3306
|
const stylisticOptions = options.stylistic === false ? false : typeof options.stylistic === "object" ? options.stylistic : {};
|
|
3306
3307
|
if (stylisticOptions && !("jsx" in stylisticOptions)) stylisticOptions.jsx = typeof enableJsx === "object" ? true : enableJsx;
|
|
3307
3308
|
const configs = [];
|
|
3308
|
-
if (enableGitignore)
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3309
|
+
if (enableGitignore) {
|
|
3310
|
+
if (typeof enableGitignore !== "boolean") configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
|
|
3311
|
+
name: "config/gitignore",
|
|
3312
|
+
...enableGitignore
|
|
3313
|
+
})]));
|
|
3314
|
+
else configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
|
|
3315
|
+
name: "config/gitignore",
|
|
3316
|
+
strict: false
|
|
3317
|
+
})]));
|
|
3318
|
+
}
|
|
3316
3319
|
const typescriptOptions = resolveSubOptions(options, "typescript");
|
|
3317
3320
|
const tsconfigPath = "tsconfigPath" in typescriptOptions ? typescriptOptions.tsconfigPath : void 0;
|
|
3318
3321
|
configs.push(ignores(userIgnores, !enableTypeScript), javascript({
|
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.13.
|
|
4
|
+
"version": "2.13.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,41 +46,41 @@
|
|
|
46
46
|
"typecheck": "tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@antfu/install-pkg": "2.0
|
|
50
|
-
"@clack/prompts": "1.
|
|
51
|
-
"@e18e/eslint-plugin": "0.8.
|
|
52
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.
|
|
53
|
-
"@eslint/compat": "2.1.
|
|
49
|
+
"@antfu/install-pkg": "2.1.0",
|
|
50
|
+
"@clack/prompts": "1.8.1",
|
|
51
|
+
"@e18e/eslint-plugin": "0.8.1",
|
|
52
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.8.1",
|
|
53
|
+
"@eslint/compat": "2.1.1",
|
|
54
54
|
"@eslint/config-array": "0.23.5",
|
|
55
55
|
"@eslint/config-helpers": "0.7.0",
|
|
56
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.
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "8.71.0",
|
|
59
|
+
"@typescript-eslint/parser": "8.71.0",
|
|
60
|
+
"@typescript-eslint/utils": "8.71.0",
|
|
61
61
|
"@vitest/eslint-plugin": "1.6.27",
|
|
62
|
-
"ansis": "4.
|
|
62
|
+
"ansis": "4.4.0",
|
|
63
63
|
"cac": "7.0.0",
|
|
64
|
-
"eslint-config-flat-gitignore": "2.
|
|
64
|
+
"eslint-config-flat-gitignore": "2.4.0",
|
|
65
65
|
"eslint-flat-config-utils": "3.2.0",
|
|
66
66
|
"eslint-merge-processors": "2.0.0",
|
|
67
67
|
"eslint-plugin-antfu": "3.2.3",
|
|
68
68
|
"eslint-plugin-command": "4.0.0",
|
|
69
69
|
"eslint-plugin-import-lite": "0.6.0",
|
|
70
|
-
"eslint-plugin-jsdoc": "
|
|
71
|
-
"eslint-plugin-jsonc": "3.4.
|
|
72
|
-
"eslint-plugin-n": "18.
|
|
70
|
+
"eslint-plugin-jsdoc": "65.0.2",
|
|
71
|
+
"eslint-plugin-jsonc": "3.4.2",
|
|
72
|
+
"eslint-plugin-n": "18.4.0",
|
|
73
73
|
"eslint-plugin-no-only-tests": "3.4.0",
|
|
74
|
-
"eslint-plugin-perfectionist": "5.
|
|
75
|
-
"eslint-plugin-pnpm": "1.
|
|
76
|
-
"eslint-plugin-regexp": "3.
|
|
74
|
+
"eslint-plugin-perfectionist": "5.12.1",
|
|
75
|
+
"eslint-plugin-pnpm": "1.9.1",
|
|
76
|
+
"eslint-plugin-regexp": "3.3.1",
|
|
77
77
|
"eslint-plugin-toml": "1.5.0",
|
|
78
|
-
"eslint-plugin-unicorn": "
|
|
78
|
+
"eslint-plugin-unicorn": "76.0.0",
|
|
79
79
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
80
|
-
"eslint-plugin-vue": "10.
|
|
80
|
+
"eslint-plugin-vue": "10.11.1",
|
|
81
81
|
"eslint-plugin-yml": "3.8.1",
|
|
82
82
|
"eslint-processor-vue-blocks": "2.0.0",
|
|
83
|
-
"globals": "17.
|
|
83
|
+
"globals": "17.13.0",
|
|
84
84
|
"jsonc-eslint-parser": "3.3.0",
|
|
85
85
|
"local-pkg": "1.2.1",
|
|
86
86
|
"parse-gitignore": "2.0.0",
|
|
@@ -89,64 +89,64 @@
|
|
|
89
89
|
"yaml-eslint-parser": "2.1.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@eslint-react/eslint-plugin": "5.
|
|
93
|
-
"@eslint/config-inspector": "3.
|
|
92
|
+
"@eslint-react/eslint-plugin": "5.23.4",
|
|
93
|
+
"@eslint/config-inspector": "3.5.0",
|
|
94
94
|
"@infernodesign/typescript-config": "workspace:*",
|
|
95
|
-
"@medusajs/eslint-plugin": "2.
|
|
96
|
-
"@next/eslint-plugin-next": "16.3.
|
|
95
|
+
"@medusajs/eslint-plugin": "2.21.2",
|
|
96
|
+
"@next/eslint-plugin-next": "16.3.8",
|
|
97
97
|
"@prettier/plugin-xml": "3.4.2",
|
|
98
|
-
"@sanity-labs/eslint-plugin": "1.0.
|
|
99
|
-
"@types/bun": "1.
|
|
98
|
+
"@sanity-labs/eslint-plugin": "1.0.1",
|
|
99
|
+
"@types/bun": "1.4.2",
|
|
100
100
|
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
101
|
-
"@types/node": "26.
|
|
102
|
-
"@unocss/eslint-plugin": "66.
|
|
103
|
-
"astro-eslint-parser": "3.
|
|
104
|
-
"eslint": "10.
|
|
105
|
-
"eslint-plugin-astro": "3.1
|
|
101
|
+
"@types/node": "26.6.4",
|
|
102
|
+
"@unocss/eslint-plugin": "66.10.5",
|
|
103
|
+
"astro-eslint-parser": "3.2.0",
|
|
104
|
+
"eslint": "10.11.0",
|
|
105
|
+
"eslint-plugin-astro": "3.2.1",
|
|
106
106
|
"eslint-plugin-better-tailwindcss": "4.7.0",
|
|
107
|
-
"eslint-plugin-erasable-syntax-only": "0.
|
|
107
|
+
"eslint-plugin-erasable-syntax-only": "0.7.2",
|
|
108
108
|
"eslint-plugin-format": "2.0.1",
|
|
109
109
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
110
|
-
"eslint-plugin-react-refresh": "0.5.
|
|
111
|
-
"eslint-plugin-solid": "0.
|
|
112
|
-
"eslint-plugin-storybook": "10.
|
|
110
|
+
"eslint-plugin-react-refresh": "0.5.7",
|
|
111
|
+
"eslint-plugin-solid": "0.18.0",
|
|
112
|
+
"eslint-plugin-storybook": "10.6.1",
|
|
113
113
|
"eslint-plugin-svelte": "3.23.0",
|
|
114
114
|
"eslint-plugin-vuejs-accessibility": "2.6.0",
|
|
115
115
|
"eslint-typegen": "2.3.1",
|
|
116
116
|
"execa": "10.0.1",
|
|
117
117
|
"find-up-simple": "1.0.1",
|
|
118
118
|
"jiti": "2.7.0",
|
|
119
|
-
"pnpm-workspace-yaml": "1.
|
|
120
|
-
"prettier-plugin-astro": "
|
|
119
|
+
"pnpm-workspace-yaml": "1.9.1",
|
|
120
|
+
"prettier-plugin-astro": "1.1.0",
|
|
121
121
|
"prettier-plugin-slidev": "1.0.5",
|
|
122
|
-
"svelte": "5.
|
|
122
|
+
"svelte": "5.57.1",
|
|
123
123
|
"svelte-eslint-parser": "1.8.1",
|
|
124
124
|
"tinyglobby": "0.2.17",
|
|
125
|
-
"tsdown": "0.
|
|
125
|
+
"tsdown": "0.23.0",
|
|
126
126
|
"typescript": "6.0.3",
|
|
127
|
-
"vitest": "
|
|
128
|
-
"vue": "3.5.
|
|
127
|
+
"vitest": "5.0.3",
|
|
128
|
+
"vue": "3.5.43"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
132
|
-
"@medusajs/eslint-plugin": "^2.
|
|
133
|
-
"@next/eslint-plugin-next": "^16.3.
|
|
131
|
+
"@eslint-react/eslint-plugin": "^5.23.4",
|
|
132
|
+
"@medusajs/eslint-plugin": "^2.21.2",
|
|
133
|
+
"@next/eslint-plugin-next": "^16.3.8",
|
|
134
134
|
"@prettier/plugin-xml": "^3.4.2",
|
|
135
|
-
"@sanity-labs/eslint-plugin": "^1.0.
|
|
136
|
-
"@unocss/eslint-plugin": "^66.
|
|
137
|
-
"astro-eslint-parser": "^3.
|
|
138
|
-
"eslint": "^10.
|
|
139
|
-
"eslint-plugin-astro": "^3.1
|
|
135
|
+
"@sanity-labs/eslint-plugin": "^1.0.1",
|
|
136
|
+
"@unocss/eslint-plugin": "^66.10.5",
|
|
137
|
+
"astro-eslint-parser": "^3.2.0",
|
|
138
|
+
"eslint": "^10.11.0",
|
|
139
|
+
"eslint-plugin-astro": "^3.2.1",
|
|
140
140
|
"eslint-plugin-better-tailwindcss": "^4.7.0",
|
|
141
|
-
"eslint-plugin-erasable-syntax-only": "^0.
|
|
141
|
+
"eslint-plugin-erasable-syntax-only": "^0.7.2",
|
|
142
142
|
"eslint-plugin-format": "^2.0.1",
|
|
143
143
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
144
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
145
|
-
"eslint-plugin-solid": "^0.
|
|
146
|
-
"eslint-plugin-storybook": "^10.
|
|
144
|
+
"eslint-plugin-react-refresh": "^0.5.7",
|
|
145
|
+
"eslint-plugin-solid": "^0.18.0",
|
|
146
|
+
"eslint-plugin-storybook": "^10.6.1",
|
|
147
147
|
"eslint-plugin-svelte": "^3.23.0",
|
|
148
148
|
"eslint-plugin-vuejs-accessibility": "^2.6.0",
|
|
149
|
-
"prettier-plugin-astro": "^
|
|
149
|
+
"prettier-plugin-astro": "^1.1.0",
|
|
150
150
|
"prettier-plugin-slidev": "^1.0.5",
|
|
151
151
|
"svelte-eslint-parser": "^1.8.1"
|
|
152
152
|
},
|