Skip to content

Commit 1476353

Browse files
authored
fix: add ESLint compatibility types and update plugins exports, closes #1200 (#1201)
1 parent e2217ea commit 1476353

File tree

41 files changed

+849
-791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+849
-791
lines changed

.pkgs/eslint-plugin-local/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"devDependencies": {
4444
"@local/configs": "workspace:*",
4545
"@types/react": "^19.1.12",
46-
"@types/react-dom": "^19.1.8",
46+
"@types/react-dom": "^19.1.9",
4747
"tsdown": "^0.14.2"
4848
},
4949
"peerDependencies": {

apps/website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@types/mdx": "^2.0.13",
5252
"@types/node": "^24.3.0",
5353
"@types/react": "^19.1.12",
54-
"@types/react-dom": "^19.1.8",
54+
"@types/react-dom": "^19.1.9",
5555
"autoprefixer": "^10.4.21",
5656
"dedent": "^1.6.0",
5757
"eslint": "^9.34.0",

examples/lynx/eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import eslintJs from "@eslint/js";
22
import gitignore from "eslint-config-flat-gitignore";
33
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
44
import eslintPluginReactX from "eslint-plugin-react-x";
5+
import { defineConfig } from "eslint/config";
56
import tseslint from "typescript-eslint";
67

78
import TSCONFIG from "./tsconfig.json" with { type: "json" };
@@ -10,7 +11,7 @@ const GLOB_TS = ["**/*.ts", "**/*.tsx"];
1011
const GLOB_JS = ["**/*.js", "**/*.jsx"];
1112
const GLOB_CONFIG = ["**/*.config.{js,mjs,ts,tsx}"];
1213

13-
export default tseslint.config(
14+
export default defineConfig([
1415
gitignore(),
1516
{
1617
files: GLOB_TS,
@@ -52,4 +53,4 @@ export default tseslint.config(
5253
"no-console": "off",
5354
},
5455
},
55-
);
56+
]);

examples/lynx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@lynx-js/qrcode-rsbuild-plugin": "^0.4.1",
2424
"@lynx-js/react-rsbuild-plugin": "^0.10.13",
2525
"@lynx-js/rspeedy": "^0.10.8",
26-
"@lynx-js/types": "^3.3.0",
26+
"@lynx-js/types": "^3.4.11",
2727
"@rsbuild/plugin-sass": "^1.4.0",
2828
"@rsbuild/plugin-type-check": "^1.2.4",
2929
"@types/react": "^19.1.12",

examples/next/eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import eslintPluginNext from "@next/eslint-plugin-next";
44
import gitignore from "eslint-config-flat-gitignore";
55
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
66
import eslintPluginReactRefresh from "eslint-plugin-react-refresh";
7+
import { defineConfig } from "eslint/config";
78
import tseslint from "typescript-eslint";
89

910
import TSCONFIG from "./tsconfig.json" with { type: "json" };
@@ -13,7 +14,7 @@ const GLOB_JS = ["**/*.js", "**/*.jsx"];
1314
const GLOB_APP = ["app/**/*.{js,ts,jsx,tsx}"];
1415
const GLOB_CONFIG = ["**/*.config.{js,mjs,ts,tsx}"];
1516

16-
export default tseslint.config(
17+
export default defineConfig([
1718
gitignore(),
1819
{
1920
files: GLOB_TS,
@@ -65,4 +66,4 @@ export default tseslint.config(
6566
"no-console": "off",
6667
},
6768
},
68-
);
69+
]);

examples/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@tsconfig/strictest": "^2.0.5",
2525
"@types/node": "^24.3.0",
2626
"@types/react": "^19.1.12",
27-
"@types/react-dom": "^19.1.8",
27+
"@types/react-dom": "^19.1.9",
2828
"eslint": "^9.34.0",
2929
"eslint-config-flat-gitignore": "^2.1.0",
3030
"eslint-plugin-react-hooks": "^5.2.0",

examples/react-dom-js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"@eslint/config-inspector": "^1.2.0",
2020
"@eslint/js": "^9.34.0",
2121
"@types/react": "^19.1.12",
22-
"@types/react-dom": "^19.1.8",
23-
"@vitejs/plugin-react": "^5.0.1",
22+
"@types/react-dom": "^19.1.9",
23+
"@vitejs/plugin-react": "^5.0.2",
2424
"eslint": "^9.34.0",
2525
"eslint-plugin-react-hooks": "^5.2.0",
2626
"eslint-plugin-react-refresh": "^0.4.20",

examples/react-dom-v1/eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import eslintReact from "@eslint-react/eslint-plugin";
22
import eslintJs from "@eslint/js";
33
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
44
import eslintPluginReactRefresh from "eslint-plugin-react-refresh";
5+
import { defineConfig } from "eslint/config";
56
import tseslint from "typescript-eslint";
67

78
import TSCONFIG_APP from "./tsconfig.app.json" with { type: "json" };
89
import TSCONFIG_NODE from "./tsconfig.node.json" with { type: "json" };
910

1011
const GLOB_TS = ["**/*.ts", "**/*.tsx"];
1112

12-
export default tseslint.config(
13+
export default defineConfig([
1314
{
1415
files: GLOB_TS,
1516
extends: [
@@ -155,4 +156,4 @@ export default tseslint.config(
155156
"@eslint-react/naming-convention/use-state": "warn",
156157
},
157158
},
158-
);
159+
]);

examples/react-dom-v1/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@tsconfig/strictest": "^2.0.5",
2323
"@tsconfig/vite-react": "^7.0.0",
2424
"@types/react": "^19.1.12",
25-
"@types/react-dom": "^19.1.8",
26-
"@vitejs/plugin-react": "^5.0.1",
25+
"@types/react-dom": "^19.1.9",
26+
"@vitejs/plugin-react": "^5.0.2",
2727
"eslint": "^9.34.0",
2828
"eslint-plugin-react-hooks": "^5.2.0",
2929
"eslint-plugin-react-refresh": "^0.4.20",

examples/react-dom/eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import eslintReact from "@eslint-react/eslint-plugin";
22
import eslintJs from "@eslint/js";
33
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
44
import eslintPluginReactRefresh from "eslint-plugin-react-refresh";
5+
import { defineConfig } from "eslint/config";
56
import tseslint from "typescript-eslint";
67

78
import TSCONFIG_APP from "./tsconfig.app.json" with { type: "json" };
89
import TSCONFIG_NODE from "./tsconfig.node.json" with { type: "json" };
910

1011
const GLOB_TS = ["**/*.ts", "**/*.tsx"];
1112

12-
export default tseslint.config(
13+
export default defineConfig([
1314
{
1415
files: GLOB_TS,
1516
extends: [
@@ -60,4 +61,4 @@ export default tseslint.config(
6061
...eslintPluginReactHooks.configs.recommended.rules,
6162
},
6263
},
63-
);
64+
]);

0 commit comments

Comments
 (0)