@infernodesign/eslint-config 2.1.0 → 2.1.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/cli.js +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -11
- package/package.json +18 -18
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import { cac } from "cac";
|
|
|
8
8
|
import parse from "parse-gitignore";
|
|
9
9
|
import { execSync } from "node:child_process";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "2.1.
|
|
11
|
+
var version = "2.1.1";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/cli/constants.ts
|
|
14
14
|
const vscodeSettingsString = `
|
|
@@ -187,12 +187,12 @@ async function updateEslintFiles(result) {
|
|
|
187
187
|
//#region src/cli/constants-generated.ts
|
|
188
188
|
const versionsMap = {
|
|
189
189
|
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
190
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
190
|
+
"@next/eslint-plugin-next": "^16.2.4",
|
|
191
191
|
"@unocss/eslint-plugin": "^66.6.8",
|
|
192
192
|
"astro-eslint-parser": "^1.4.0",
|
|
193
|
-
"eslint": "^10.2.
|
|
193
|
+
"eslint": "^10.2.1",
|
|
194
194
|
"eslint-plugin-astro": "^1.7.0",
|
|
195
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
195
|
+
"eslint-plugin-better-tailwindcss": "^4.4.1",
|
|
196
196
|
"eslint-plugin-format": "^2.0.1",
|
|
197
197
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
198
198
|
"eslint-plugin-solid": "^0.14.5",
|
package/dist/index.d.ts
CHANGED
|
@@ -12089,6 +12089,7 @@ type PerfectionistSortClasses = {
|
|
|
12089
12089
|
matchesAstSelector?: string;
|
|
12090
12090
|
};
|
|
12091
12091
|
useExperimentalDependencyDetection?: boolean;
|
|
12092
|
+
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
12092
12093
|
ignoreCallbackDependenciesPatterns?: (({
|
|
12093
12094
|
pattern: string;
|
|
12094
12095
|
flags?: string;
|
|
@@ -13452,6 +13453,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
13452
13453
|
})[];
|
|
13453
13454
|
newlinesBetween?: ("ignore" | number);
|
|
13454
13455
|
useExperimentalDependencyDetection?: boolean;
|
|
13456
|
+
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
13455
13457
|
partitionByComment?: (boolean | (({
|
|
13456
13458
|
pattern: string;
|
|
13457
13459
|
flags?: string;
|
package/dist/index.js
CHANGED
|
@@ -1577,15 +1577,7 @@ async function perfectionist() {
|
|
|
1577
1577
|
specialCharacters: "keep",
|
|
1578
1578
|
type: "alphabetical"
|
|
1579
1579
|
}],
|
|
1580
|
-
"perfectionist/sort-objects":
|
|
1581
|
-
fallbackSort: { type: "unsorted" },
|
|
1582
|
-
newlinesBetween: "ignore",
|
|
1583
|
-
order: "asc",
|
|
1584
|
-
partitionByComment: true,
|
|
1585
|
-
partitionByNewLine: true,
|
|
1586
|
-
specialCharacters: "keep",
|
|
1587
|
-
type: "alphabetical"
|
|
1588
|
-
}],
|
|
1580
|
+
"perfectionist/sort-objects": "off",
|
|
1589
1581
|
"perfectionist/sort-sets": ["error", {
|
|
1590
1582
|
fallbackSort: { type: "unsorted" },
|
|
1591
1583
|
newlinesBetween: "ignore",
|
|
@@ -2538,7 +2530,6 @@ async function typescript(options = {}) {
|
|
|
2538
2530
|
const ignoresTypeAware = options.ignoresTypeAware ?? [`**/*.md/**`, "**/*.astro/*.ts"];
|
|
2539
2531
|
const tsconfigPath = options?.tsconfigPath ? options.tsconfigPath : void 0;
|
|
2540
2532
|
const isTypeAware = !!tsconfigPath;
|
|
2541
|
-
const isStrict = strict ?? false;
|
|
2542
2533
|
const typeAwareRules = {
|
|
2543
2534
|
"dot-notation": "off",
|
|
2544
2535
|
"no-implied-eval": "off",
|
|
@@ -2550,7 +2541,7 @@ async function typescript(options = {}) {
|
|
|
2550
2541
|
"ts/return-await": ["error", "in-try-catch"],
|
|
2551
2542
|
"ts/switch-exhaustiveness-check": "error",
|
|
2552
2543
|
"ts/unbound-method": "error",
|
|
2553
|
-
...
|
|
2544
|
+
...strict ?? false ? {
|
|
2554
2545
|
"ts/no-floating-promises": "error",
|
|
2555
2546
|
"ts/no-for-in-array": "error",
|
|
2556
2547
|
"ts/no-implied-eval": "error",
|
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.1.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"@eslint/config-helpers": "0.5.5",
|
|
56
56
|
"@eslint/markdown": "8.0.1",
|
|
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.59.0",
|
|
59
|
+
"@typescript-eslint/parser": "8.59.0",
|
|
60
|
+
"@typescript-eslint/utils": "8.59.0",
|
|
61
|
+
"@vitest/eslint-plugin": "1.6.16",
|
|
62
62
|
"ansis": "4.2.0",
|
|
63
63
|
"cac": "7.0.0",
|
|
64
64
|
"eslint-config-flat-gitignore": "2.3.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"eslint-plugin-jsonc": "3.1.2",
|
|
72
72
|
"eslint-plugin-n": "17.24.0",
|
|
73
73
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
74
|
-
"eslint-plugin-perfectionist": "5.
|
|
74
|
+
"eslint-plugin-perfectionist": "5.9.0",
|
|
75
75
|
"eslint-plugin-pnpm": "1.6.0",
|
|
76
76
|
"eslint-plugin-regexp": "3.1.0",
|
|
77
77
|
"eslint-plugin-toml": "1.3.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"eslint-plugin-vue": "10.8.0",
|
|
81
81
|
"eslint-plugin-yml": "3.3.1",
|
|
82
82
|
"eslint-processor-vue-blocks": "2.0.0",
|
|
83
|
-
"globals": "17.
|
|
83
|
+
"globals": "17.5.0",
|
|
84
84
|
"jsonc-eslint-parser": "3.1.0",
|
|
85
85
|
"local-pkg": "1.1.2",
|
|
86
86
|
"parse-gitignore": "2.0.0",
|
|
@@ -90,17 +90,17 @@
|
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@eslint-react/eslint-plugin": "4.2.3",
|
|
93
|
-
"@eslint/config-inspector": "
|
|
93
|
+
"@eslint/config-inspector": "2.0.0",
|
|
94
94
|
"@infernodesign/typescript-config": "workspace:*",
|
|
95
|
-
"@next/eslint-plugin-next": "16.2.
|
|
95
|
+
"@next/eslint-plugin-next": "16.2.4",
|
|
96
96
|
"@prettier/plugin-xml": "3.4.2",
|
|
97
97
|
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
98
|
-
"@types/node": "25.
|
|
98
|
+
"@types/node": "25.6.0",
|
|
99
99
|
"@unocss/eslint-plugin": "66.6.8",
|
|
100
100
|
"astro-eslint-parser": "1.4.0",
|
|
101
|
-
"eslint": "10.2.
|
|
101
|
+
"eslint": "10.2.1",
|
|
102
102
|
"eslint-plugin-astro": "1.7.0",
|
|
103
|
-
"eslint-plugin-better-tailwindcss": "4.
|
|
103
|
+
"eslint-plugin-better-tailwindcss": "4.4.1",
|
|
104
104
|
"eslint-plugin-erasable-syntax-only": "0.4.0",
|
|
105
105
|
"eslint-plugin-format": "2.0.1",
|
|
106
106
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
@@ -116,23 +116,23 @@
|
|
|
116
116
|
"pnpm-workspace-yaml": "1.6.0",
|
|
117
117
|
"prettier-plugin-astro": "0.14.1",
|
|
118
118
|
"prettier-plugin-slidev": "1.0.5",
|
|
119
|
-
"svelte": "5.55.
|
|
119
|
+
"svelte": "5.55.4",
|
|
120
120
|
"svelte-eslint-parser": "1.6.0",
|
|
121
121
|
"tinyglobby": "0.2.16",
|
|
122
|
-
"tsdown": "0.21.
|
|
122
|
+
"tsdown": "0.21.9",
|
|
123
123
|
"typescript": "5.9.3",
|
|
124
|
-
"vitest": "4.1.
|
|
124
|
+
"vitest": "4.1.5",
|
|
125
125
|
"vue": "3.5.32"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
128
|
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
129
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
129
|
+
"@next/eslint-plugin-next": "^16.2.4",
|
|
130
130
|
"@prettier/plugin-xml": "^3.4.2",
|
|
131
131
|
"@unocss/eslint-plugin": "^66.6.8",
|
|
132
132
|
"astro-eslint-parser": "^1.4.0",
|
|
133
|
-
"eslint": "^10.2.
|
|
133
|
+
"eslint": "^10.2.1",
|
|
134
134
|
"eslint-plugin-astro": "^1.7.0",
|
|
135
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
135
|
+
"eslint-plugin-better-tailwindcss": "^4.4.1",
|
|
136
136
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
137
137
|
"eslint-plugin-format": "^2.0.1",
|
|
138
138
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|