@debbl/eslint-config 3.12.0 → 3.12.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.js +9 -18
- package/package.json +30 -30
package/dist/index.js
CHANGED
|
@@ -25,8 +25,7 @@ const parserPlain = {
|
|
|
25
25
|
* Combine array and non-array configs into a single array.
|
|
26
26
|
*/
|
|
27
27
|
async function combine(...configs) {
|
|
28
|
-
|
|
29
|
-
return resolved.flat();
|
|
28
|
+
return (await Promise.all(configs)).flat();
|
|
30
29
|
}
|
|
31
30
|
async function interopDefault(m) {
|
|
32
31
|
const resolved = await m;
|
|
@@ -142,10 +141,9 @@ const ignores = async (options) => {
|
|
|
142
141
|
//#endregion
|
|
143
142
|
//#region src/configs/imports.ts
|
|
144
143
|
async function imports() {
|
|
145
|
-
const pluginImport = await interopDefault(import("eslint-plugin-import-x"));
|
|
146
144
|
return [{
|
|
147
145
|
name: "eslint/imports/rules",
|
|
148
|
-
plugins: { import:
|
|
146
|
+
plugins: { import: await interopDefault(import("eslint-plugin-import-x")) },
|
|
149
147
|
rules: {
|
|
150
148
|
"import/first": "error",
|
|
151
149
|
"import/no-duplicates": "error",
|
|
@@ -477,11 +475,10 @@ const jsonc = async (options) => {
|
|
|
477
475
|
//#region src/configs/markdown.ts
|
|
478
476
|
const markdown = async (options) => {
|
|
479
477
|
const { mdx: _enableMdx = false, componentExts = [], overrides = {} } = options;
|
|
480
|
-
|
|
481
|
-
const _markdown = [
|
|
478
|
+
return [
|
|
482
479
|
{
|
|
483
480
|
name: "eslint/markdown/setup",
|
|
484
|
-
plugins: { markdown:
|
|
481
|
+
plugins: { markdown: await interopDefault(import("@eslint/markdown")) }
|
|
485
482
|
},
|
|
486
483
|
{
|
|
487
484
|
name: "eslint/markdown/processor",
|
|
@@ -533,16 +530,14 @@ const markdown = async (options) => {
|
|
|
533
530
|
}
|
|
534
531
|
}
|
|
535
532
|
];
|
|
536
|
-
return _markdown;
|
|
537
533
|
};
|
|
538
534
|
|
|
539
535
|
//#endregion
|
|
540
536
|
//#region src/configs/node.ts
|
|
541
537
|
async function node() {
|
|
542
|
-
const pluginNode = await interopDefault(import("eslint-plugin-n"));
|
|
543
538
|
return [{
|
|
544
539
|
name: "eslint/node/rules",
|
|
545
|
-
plugins: { n:
|
|
540
|
+
plugins: { n: await interopDefault(import("eslint-plugin-n")) },
|
|
546
541
|
rules: {
|
|
547
542
|
"n/handle-callback-err": ["error", "^(err|error)$"],
|
|
548
543
|
"n/no-deprecated-api": "error",
|
|
@@ -564,10 +559,9 @@ async function node() {
|
|
|
564
559
|
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
565
560
|
*/
|
|
566
561
|
async function perfectionist() {
|
|
567
|
-
const pluginPerfectionist = await interopDefault(import("eslint-plugin-perfectionist"));
|
|
568
562
|
return [{
|
|
569
563
|
name: "eslint/perfectionist/setup",
|
|
570
|
-
plugins: { perfectionist:
|
|
564
|
+
plugins: { perfectionist: await interopDefault(import("eslint-plugin-perfectionist")) },
|
|
571
565
|
rules: {
|
|
572
566
|
"perfectionist/sort-exports": ["error", {
|
|
573
567
|
order: "asc",
|
|
@@ -1109,10 +1103,9 @@ const typescript = async (options) => {
|
|
|
1109
1103
|
//#endregion
|
|
1110
1104
|
//#region src/configs/unicorn.ts
|
|
1111
1105
|
async function unicorn() {
|
|
1112
|
-
const pluginUnicorn = await interopDefault(import("eslint-plugin-unicorn"));
|
|
1113
1106
|
return [{
|
|
1114
1107
|
name: "eslint/unicorn/rules",
|
|
1115
|
-
plugins: { unicorn:
|
|
1108
|
+
plugins: { unicorn: await interopDefault(import("eslint-plugin-unicorn")) },
|
|
1116
1109
|
rules: {
|
|
1117
1110
|
"unicorn/consistent-empty-array-spread": "error",
|
|
1118
1111
|
"unicorn/escape-case": "error",
|
|
@@ -1346,8 +1339,7 @@ const react = async (options) => {
|
|
|
1346
1339
|
interopDefault(import("eslint-plugin-react-hooks")),
|
|
1347
1340
|
interopDefault(import("eslint-plugin-react-refresh"))
|
|
1348
1341
|
]);
|
|
1349
|
-
const
|
|
1350
|
-
const { "@eslint-react": pluginReactX, "@eslint-react/dom": pluginReactDom, "@eslint-react/hooks-extra": pluginReactHooksExtra, "@eslint-react/naming-convention": pluginReactNamingConvention, "@eslint-react/web-api": pluginReactWebApi } = plugins;
|
|
1342
|
+
const { "@eslint-react": pluginReactX, "@eslint-react/dom": pluginReactDom, "@eslint-react/hooks-extra": pluginReactHooksExtra, "@eslint-react/naming-convention": pluginReactNamingConvention, "@eslint-react/web-api": pluginReactWebApi } = pluginsReact.configs.all.plugins;
|
|
1351
1343
|
const _react = [{
|
|
1352
1344
|
name: "eslint/react/setup",
|
|
1353
1345
|
plugins: {
|
|
@@ -1491,8 +1483,7 @@ function defineConfig(options = {}, ...userConfigs) {
|
|
|
1491
1483
|
...getConfigOptions(options.prettier),
|
|
1492
1484
|
tailwindcss: enableTailwindcss === "prettier"
|
|
1493
1485
|
}));
|
|
1494
|
-
|
|
1495
|
-
return merged;
|
|
1486
|
+
return combine(...configs, ...userConfigs);
|
|
1496
1487
|
}
|
|
1497
1488
|
|
|
1498
1489
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debbl/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.12.
|
|
4
|
+
"version": "3.12.2",
|
|
5
5
|
"description": "Brendan Dash's ESLint config",
|
|
6
6
|
"author": "Brendan Dash <me@aiwan.run> (https://github.com/Debbl/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,54 +24,54 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
27
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
28
|
-
"@eslint/markdown": "^
|
|
29
|
-
"@next/eslint-plugin-next": "^15.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
-
"@vitest/eslint-plugin": "^1.
|
|
27
|
+
"@eslint-react/eslint-plugin": "^1.53.1",
|
|
28
|
+
"@eslint/markdown": "^7.2.0",
|
|
29
|
+
"@next/eslint-plugin-next": "^15.5.3",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
31
|
+
"@typescript-eslint/parser": "^8.44.0",
|
|
32
|
+
"@vitest/eslint-plugin": "^1.3.12",
|
|
33
33
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
34
|
-
"eslint-plugin-import-x": "^4.
|
|
35
|
-
"eslint-plugin-jsdoc": "^
|
|
34
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
35
|
+
"eslint-plugin-jsdoc": "^59.0.1",
|
|
36
36
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
37
|
-
"eslint-plugin-n": "^17.
|
|
37
|
+
"eslint-plugin-n": "^17.23.1",
|
|
38
38
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
39
|
-
"eslint-plugin-perfectionist": "^4.
|
|
40
|
-
"eslint-plugin-prettier": "^5.4
|
|
39
|
+
"eslint-plugin-perfectionist": "^4.15.0",
|
|
40
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
41
41
|
"eslint-plugin-react-compiler": "latest",
|
|
42
42
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
43
43
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
44
44
|
"eslint-plugin-solid": "^0.14.5",
|
|
45
|
-
"eslint-plugin-tailwindcss": "^3.18.
|
|
45
|
+
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
46
46
|
"eslint-plugin-toml": "^0.12.0",
|
|
47
|
-
"eslint-plugin-unicorn": "^
|
|
48
|
-
"eslint-plugin-unused-imports": "^4.
|
|
49
|
-
"eslint-plugin-vue": "^10.
|
|
47
|
+
"eslint-plugin-unicorn": "^61.0.2",
|
|
48
|
+
"eslint-plugin-unused-imports": "^4.2.0",
|
|
49
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
50
50
|
"eslint-plugin-yml": "^1.18.0",
|
|
51
|
-
"globals": "^16.
|
|
51
|
+
"globals": "^16.4.0",
|
|
52
52
|
"jsonc-eslint-parser": "^2.4.0",
|
|
53
|
-
"prettier": "^3.
|
|
54
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
53
|
+
"prettier": "^3.6.2",
|
|
54
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
55
55
|
"toml-eslint-parser": "^0.10.0",
|
|
56
|
-
"vue-eslint-parser": "^10.
|
|
56
|
+
"vue-eslint-parser": "^10.2.0",
|
|
57
57
|
"yaml-eslint-parser": "^1.3.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@eslint/config-inspector": "^1.0
|
|
60
|
+
"@eslint/config-inspector": "^1.2.0",
|
|
61
61
|
"@types/eslint": "^9.6.1",
|
|
62
62
|
"@types/fs-extra": "^11.0.4",
|
|
63
|
-
"@types/node": "^
|
|
64
|
-
"@types/react": "^19.1.
|
|
65
|
-
"bumpp": "^10.
|
|
66
|
-
"eslint": "^9.
|
|
63
|
+
"@types/node": "^24.5.2",
|
|
64
|
+
"@types/react": "^19.1.13",
|
|
65
|
+
"bumpp": "^10.2.3",
|
|
66
|
+
"eslint": "^9.35.0",
|
|
67
67
|
"execa": "^9.6.0",
|
|
68
68
|
"fast-glob": "^3.3.3",
|
|
69
|
-
"fs-extra": "^11.3.
|
|
70
|
-
"react": "^19.1.
|
|
69
|
+
"fs-extra": "^11.3.2",
|
|
70
|
+
"react": "^19.1.1",
|
|
71
71
|
"sucrase": "^3.35.0",
|
|
72
|
-
"tsdown": "^0.
|
|
73
|
-
"typescript": "^5.
|
|
74
|
-
"vitest": "^3.2.
|
|
72
|
+
"tsdown": "^0.15.2",
|
|
73
|
+
"typescript": "^5.9.2",
|
|
74
|
+
"vitest": "^3.2.4"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "tsdown",
|