@luxass/eslint-config 5.3.0 → 5.3.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/index.d.ts +286 -191
- package/dist/index.js +3 -7
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -127,8 +127,7 @@ const parserPlain = {
|
|
|
127
127
|
* Combine array and non-array configs into a single array.
|
|
128
128
|
*/
|
|
129
129
|
async function combine(...configs$1) {
|
|
130
|
-
|
|
131
|
-
return resolved.flat();
|
|
130
|
+
return (await Promise.all(configs$1)).flat();
|
|
132
131
|
}
|
|
133
132
|
/**
|
|
134
133
|
* Rename plugin prefixes in a rule object.
|
|
@@ -235,9 +234,7 @@ async function ensure(packages) {
|
|
|
235
234
|
if (process.env.CI || process.stdout.isTTY === false || isCwdInScope === false) return;
|
|
236
235
|
const nonExistingPackages = packages.filter((i) => i && !isPackageInScope(i));
|
|
237
236
|
if (nonExistingPackages.length === 0) return;
|
|
238
|
-
|
|
239
|
-
const result = await p.confirm({ message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?` });
|
|
240
|
-
if (result) await import("@antfu/install-pkg").then((i) => i.installPackage(nonExistingPackages, { dev: true }));
|
|
237
|
+
if (await (await import("@clack/prompts")).confirm({ message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?` })) await import("@antfu/install-pkg").then((i) => i.installPackage(nonExistingPackages, { dev: true }));
|
|
241
238
|
}
|
|
242
239
|
/**
|
|
243
240
|
* Resolve sub-options from a config options object.
|
|
@@ -530,10 +527,9 @@ async function formatters(options = {}, stylistic$1 = {}) {
|
|
|
530
527
|
quoteStyle: quotes === "single" ? "preferSingle" : "preferDouble",
|
|
531
528
|
useTabs: indent === "tab"
|
|
532
529
|
}, options.dprintOptions || {});
|
|
533
|
-
const pluginFormat = await interop(import("eslint-plugin-format"));
|
|
534
530
|
const configs$1 = [{
|
|
535
531
|
name: "luxass/formatter/setup",
|
|
536
|
-
plugins: { format:
|
|
532
|
+
plugins: { format: await interop(import("eslint-plugin-format")) }
|
|
537
533
|
}];
|
|
538
534
|
if (options.css) configs$1.push({
|
|
539
535
|
files: [GLOB_CSS, GLOB_POSTCSS],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxass/eslint-config",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "ESLint config for @luxass",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -83,45 +83,45 @@
|
|
|
83
83
|
"@antfu/install-pkg": "^1.1.0",
|
|
84
84
|
"@clack/prompts": "^0.11.0",
|
|
85
85
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
86
|
-
"@eslint/markdown": "^7.
|
|
87
|
-
"@stylistic/eslint-plugin": "^5.
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
89
|
-
"@typescript-eslint/parser": "^8.
|
|
90
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
86
|
+
"@eslint/markdown": "^7.2.0",
|
|
87
|
+
"@stylistic/eslint-plugin": "^5.3.1",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
89
|
+
"@typescript-eslint/parser": "^8.43.0",
|
|
90
|
+
"@vitest/eslint-plugin": "^1.3.9",
|
|
91
91
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
92
92
|
"eslint-flat-config-utils": "^2.1.1",
|
|
93
93
|
"eslint-merge-processors": "^2.0.0",
|
|
94
94
|
"eslint-plugin-antfu": "^3.1.1",
|
|
95
95
|
"eslint-plugin-command": "^3.3.1",
|
|
96
96
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
97
|
-
"eslint-plugin-jsdoc": "^
|
|
97
|
+
"eslint-plugin-jsdoc": "^56.1.2",
|
|
98
98
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
99
99
|
"eslint-plugin-n": "^17.21.3",
|
|
100
100
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
101
|
-
"eslint-plugin-pnpm": "^1.1.
|
|
101
|
+
"eslint-plugin-pnpm": "^1.1.1",
|
|
102
102
|
"eslint-plugin-regexp": "^2.10.0",
|
|
103
103
|
"eslint-plugin-toml": "^0.12.0",
|
|
104
|
-
"eslint-plugin-unicorn": "^
|
|
105
|
-
"eslint-plugin-unused-imports": "^4.
|
|
104
|
+
"eslint-plugin-unicorn": "^61.0.2",
|
|
105
|
+
"eslint-plugin-unused-imports": "^4.2.0",
|
|
106
106
|
"eslint-plugin-vue": "^10.4.0",
|
|
107
107
|
"eslint-plugin-yml": "^1.18.0",
|
|
108
108
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
109
|
-
"globals": "^16.
|
|
109
|
+
"globals": "^16.4.0",
|
|
110
110
|
"jsonc-eslint-parser": "^2.4.0",
|
|
111
|
-
"local-pkg": "^1.1.
|
|
111
|
+
"local-pkg": "^1.1.2",
|
|
112
112
|
"parse-gitignore": "^2.0.0",
|
|
113
113
|
"toml-eslint-parser": "^0.10.0",
|
|
114
114
|
"vue-eslint-parser": "^10.2.0",
|
|
115
115
|
"yaml-eslint-parser": "^1.3.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
119
|
-
"@eslint/config-inspector": "^1.
|
|
118
|
+
"@eslint-react/eslint-plugin": "^1.53.1",
|
|
119
|
+
"@eslint/config-inspector": "^1.2.0",
|
|
120
120
|
"@types/node": "^22.17.1",
|
|
121
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
122
|
-
"@unocss/eslint-plugin": "^66.
|
|
121
|
+
"@typescript-eslint/rule-tester": "^8.43.0",
|
|
122
|
+
"@unocss/eslint-plugin": "^66.5.1",
|
|
123
123
|
"astro-eslint-parser": "^1.2.2",
|
|
124
|
-
"eslint": "^9.
|
|
124
|
+
"eslint": "^9.35.0",
|
|
125
125
|
"eslint-plugin-astro": "^1.3.1",
|
|
126
126
|
"eslint-plugin-format": "^1.0.1",
|
|
127
127
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
@@ -131,12 +131,12 @@
|
|
|
131
131
|
"jiti": "^2.5.1",
|
|
132
132
|
"prettier-plugin-astro": "^0.14.1",
|
|
133
133
|
"tailwindcss": "3.4.17",
|
|
134
|
-
"tsdown": "^0.
|
|
135
|
-
"tsx": "^4.20.
|
|
134
|
+
"tsdown": "^0.15.1",
|
|
135
|
+
"tsx": "^4.20.5",
|
|
136
136
|
"typescript": "^5.9.2",
|
|
137
|
-
"unocss": "^66.
|
|
137
|
+
"unocss": "^66.5.1",
|
|
138
138
|
"vitest": "^3.2.4",
|
|
139
|
-
"vue": "^3.5.
|
|
139
|
+
"vue": "^3.5.21"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"build": "pnpm typegen && tsdown --clean --dts",
|