Skip to content

Commit 2123b29

Browse files
committed
refactor: minor improvements
1 parent 7447e32 commit 2123b29

File tree

5 files changed

+57
-60
lines changed

5 files changed

+57
-60
lines changed

examples/webpack-react-dom-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@tsconfig/node22": "22.0.0",
2626
"@tsconfig/strictest": "2.0.5",
2727
"@types/dotenv-webpack": "7.0.7",
28-
"@types/node": "^22.9.2",
28+
"@types/node": "^22.9.3",
2929
"@types/react": "^18.3.12",
3030
"@types/react-dom": "^18.3.1",
3131
"css-loader": "^7.1.2",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@swc/core": "^1.9.3",
6161
"@tsconfig/node22": "^22.0.0",
6262
"@tsconfig/strictest": "^2.0.5",
63-
"@types/node": "^22.9.2",
63+
"@types/node": "^22.9.3",
6464
"@types/react": "^18.3.12",
6565
"@types/react-dom": "^18.3.1",
6666
"@typescript-eslint/eslint-plugin": "^8.15.0",

packages/plugins/eslint-plugin/src/configs/recommended.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,29 @@ import type { RulePreset } from "@eslint-react/types";
22
import reactDebug from "eslint-plugin-react-debug";
33
import reactHooksExtra from "eslint-plugin-react-hooks-extra";
44
import reactNamingConvention from "eslint-plugin-react-naming-convention";
5-
import reactWebApi from "eslint-plugin-react-web-api";
65

76
import * as core from "./core";
87
import * as dom from "./dom";
8+
import * as webApi from "./web-api";
99

1010
export const name = "@eslint-react/recommended";
1111

1212
export const rules = {
1313
...core.rules,
1414
...dom.rules,
15+
...webApi.rules,
1516
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
1617
"@eslint-react/hooks-extra/no-redundant-custom-hook": "warn",
1718
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
18-
"@eslint-react/web-api/no-leaked-event-listener": "warn",
19-
"@eslint-react/web-api/no-leaked-interval": "warn",
20-
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
21-
"@eslint-react/web-api/no-leaked-timeout": "warn",
2219
} as const satisfies RulePreset;
2320

2421
export const plugins = {
2522
...core.plugins,
2623
...dom.plugins,
24+
...webApi.plugins,
2725
"@eslint-react/debug": reactDebug,
2826
"@eslint-react/hooks-extra": reactHooksExtra,
2927
"@eslint-react/naming-convention": reactNamingConvention,
30-
"@eslint-react/web-api": reactWebApi,
3128
};
3229

3330
export const settings = {

0 commit comments

Comments
 (0)