@debbl/eslint-config 3.2.0-beta.4 → 3.2.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/dist/index.cjs +24 -2
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +24 -2
- package/package.json +13 -13
package/dist/index.cjs
CHANGED
|
@@ -1520,7 +1520,11 @@ async function next() {
|
|
|
1520
1520
|
];
|
|
1521
1521
|
}
|
|
1522
1522
|
var react = async (options) => {
|
|
1523
|
-
const {
|
|
1523
|
+
const {
|
|
1524
|
+
next: enableNext = false,
|
|
1525
|
+
compiler: enableCompiler = false,
|
|
1526
|
+
overrides = {}
|
|
1527
|
+
} = options;
|
|
1524
1528
|
const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all(
|
|
1525
1529
|
[
|
|
1526
1530
|
// @ts-expect-error missing types
|
|
@@ -1573,7 +1577,25 @@ var react = async (options) => {
|
|
|
1573
1577
|
}
|
|
1574
1578
|
}
|
|
1575
1579
|
];
|
|
1576
|
-
|
|
1580
|
+
const reactCompiler = [
|
|
1581
|
+
{
|
|
1582
|
+
name: "eslint/react/compiler",
|
|
1583
|
+
plugins: {
|
|
1584
|
+
"react-compiler": await interopDefault(
|
|
1585
|
+
// @ts-expect-error missing types
|
|
1586
|
+
import("eslint-plugin-react-compiler")
|
|
1587
|
+
)
|
|
1588
|
+
},
|
|
1589
|
+
rules: {
|
|
1590
|
+
"react-compiler/react-compiler": "error"
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
];
|
|
1594
|
+
return combine(
|
|
1595
|
+
_react,
|
|
1596
|
+
enableCompiler ? reactCompiler : [],
|
|
1597
|
+
enableNext ? next() : []
|
|
1598
|
+
);
|
|
1577
1599
|
};
|
|
1578
1600
|
|
|
1579
1601
|
// src/configs/tailwindcss.ts
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1438,7 +1438,11 @@ async function next() {
|
|
|
1438
1438
|
];
|
|
1439
1439
|
}
|
|
1440
1440
|
var react = async (options) => {
|
|
1441
|
-
const {
|
|
1441
|
+
const {
|
|
1442
|
+
next: enableNext = false,
|
|
1443
|
+
compiler: enableCompiler = false,
|
|
1444
|
+
overrides = {}
|
|
1445
|
+
} = options;
|
|
1442
1446
|
const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all(
|
|
1443
1447
|
[
|
|
1444
1448
|
// @ts-expect-error missing types
|
|
@@ -1491,7 +1495,25 @@ var react = async (options) => {
|
|
|
1491
1495
|
}
|
|
1492
1496
|
}
|
|
1493
1497
|
];
|
|
1494
|
-
|
|
1498
|
+
const reactCompiler = [
|
|
1499
|
+
{
|
|
1500
|
+
name: "eslint/react/compiler",
|
|
1501
|
+
plugins: {
|
|
1502
|
+
"react-compiler": await interopDefault(
|
|
1503
|
+
// @ts-expect-error missing types
|
|
1504
|
+
import("eslint-plugin-react-compiler")
|
|
1505
|
+
)
|
|
1506
|
+
},
|
|
1507
|
+
rules: {
|
|
1508
|
+
"react-compiler/react-compiler": "error"
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
];
|
|
1512
|
+
return combine(
|
|
1513
|
+
_react,
|
|
1514
|
+
enableCompiler ? reactCompiler : [],
|
|
1515
|
+
enableNext ? next() : []
|
|
1516
|
+
);
|
|
1495
1517
|
};
|
|
1496
1518
|
|
|
1497
1519
|
// src/configs/tailwindcss.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debbl/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.2.0
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"description": "Brendan Dash's ESLint config",
|
|
6
6
|
"author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,44 +27,44 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@next/eslint-plugin-next": "^14.2.3",
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
31
|
-
"@typescript-eslint/parser": "^7.
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
31
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
32
32
|
"eslint-config-prettier": "^9.1.0",
|
|
33
33
|
"eslint-mdx": "^3.1.5",
|
|
34
34
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
35
|
-
"eslint-plugin-import-x": "^0.5.
|
|
36
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
37
|
-
"eslint-plugin-jsonc": "^2.
|
|
35
|
+
"eslint-plugin-import-x": "^0.5.1",
|
|
36
|
+
"eslint-plugin-jsdoc": "^48.2.6",
|
|
37
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
38
38
|
"eslint-plugin-markdown": "^5.0.0",
|
|
39
39
|
"eslint-plugin-mdx": "^3.1.5",
|
|
40
40
|
"eslint-plugin-n": "^17.7.0",
|
|
41
41
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
42
42
|
"eslint-plugin-perfectionist": "^2.10.0",
|
|
43
43
|
"eslint-plugin-prettier": "^5.1.3",
|
|
44
|
-
"eslint-plugin-react": "^7.34.
|
|
45
|
-
"eslint-plugin-react-compiler": "0.0.0-experimental-
|
|
44
|
+
"eslint-plugin-react": "^7.34.2",
|
|
45
|
+
"eslint-plugin-react-compiler": "0.0.0-experimental-a97cca1-20240529",
|
|
46
46
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
47
47
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
48
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
48
|
+
"eslint-plugin-tailwindcss": "^3.17.0",
|
|
49
49
|
"eslint-plugin-toml": "^0.11.0",
|
|
50
50
|
"eslint-plugin-unicorn": "^53.0.0",
|
|
51
|
-
"eslint-plugin-unused-imports": "^
|
|
51
|
+
"eslint-plugin-unused-imports": "^4.0.0",
|
|
52
52
|
"eslint-plugin-vitest": "^0.5.4",
|
|
53
53
|
"eslint-plugin-vue": "^9.26.0",
|
|
54
54
|
"eslint-plugin-yml": "^1.14.0",
|
|
55
|
-
"globals": "^15.
|
|
55
|
+
"globals": "^15.3.0",
|
|
56
56
|
"jsonc-eslint-parser": "^2.4.0",
|
|
57
57
|
"prettier": "^3.2.5",
|
|
58
58
|
"prettier-plugin-tailwindcss": "^0.5.14",
|
|
59
59
|
"toml-eslint-parser": "^0.9.3",
|
|
60
60
|
"vue-eslint-parser": "^9.4.2",
|
|
61
|
-
"yaml-eslint-parser": "^1.2.
|
|
61
|
+
"yaml-eslint-parser": "^1.2.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@eslint/config-inspector": "^0.4.8",
|
|
65
65
|
"@types/eslint": "^8.56.10",
|
|
66
66
|
"@types/node": "^20.12.12",
|
|
67
|
-
"@types/react": "^18.3.
|
|
67
|
+
"@types/react": "^18.3.3",
|
|
68
68
|
"bumpp": "^9.4.1",
|
|
69
69
|
"eslint": "^8.57.0",
|
|
70
70
|
"execa": "^9.1.0",
|