diff --git a/package.json b/package.json index 0722796..ed82386 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bluzzi/eslint-config", "description": "ESLint configuration preset for linting and formatting all your files", - "version": "1.3.4", + "version": "1.3.5", "license": "MIT", "author": "Bluzzi", "type": "module", @@ -39,7 +39,6 @@ "eslint-flat-config-utils": "^0.4.0", "eslint-plugin-antfu": "^2.7.0", "eslint-plugin-n": "^17.15.1", - "eslint-plugin-react-hooks": "^5.1.0", "globals": "^15.14.0", "local-pkg": "^0.5.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7a08b4..34e8f68 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,9 +35,6 @@ importers: eslint-plugin-n: specifier: ^17.15.1 version: 17.15.1(eslint@9.17.0) - eslint-plugin-react-hooks: - specifier: ^5.1.0 - version: 5.1.0(eslint@9.17.0) globals: specifier: ^15.14.0 version: 15.14.0 @@ -990,12 +987,6 @@ packages: typescript: optional: true - eslint-plugin-react-hooks@5.1.0: - resolution: {integrity: sha512-mpJRtPgHN2tNAvZ35AMfqeB3Xqeo273QxrHJsbBEPWODRM4r0yB6jfoROqKEYrOn27UtRPpcpHc2UqyBSuUNTw==} - engines: {node: '>=10'} - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-naming-convention@1.22.1: resolution: {integrity: sha512-KXsHYBk9x9+UYoXfLHbKrc1ntXu+TYIB5nmwEUP5PrjcmUO4GuFNFDzWSqUVileQbJPAXWBUwEBGfwCePGwJrg==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} @@ -2768,10 +2759,6 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks@5.1.0(eslint@9.17.0): - dependencies: - eslint: 9.17.0 - eslint-plugin-react-naming-convention@1.22.1(eslint@9.17.0)(typescript@5.7.2): dependencies: '@eslint-react/ast': 1.22.1(eslint@9.17.0)(typescript@5.7.2) diff --git a/src/configs/react/config.ts b/src/configs/react/config.ts index ec9c787..c1d0a1e 100644 --- a/src/configs/react/config.ts +++ b/src/configs/react/config.ts @@ -1,7 +1,5 @@ -/* eslint-disable ts/no-unsafe-assignment, ts/no-unsafe-member-access */ - import type { TypedFlatConfigItem } from "#/types/type"; -import { reactHooksPlugin, reactPlugin } from "#/utils/extension"; +import { reactPlugin } from "#/utils/extension"; import { configName } from "#/utils/naming"; export const react = (): TypedFlatConfigItem[] => { @@ -12,7 +10,6 @@ export const react = (): TypedFlatConfigItem[] => { plugins: { "react": reactPlugin.configs.all.plugins["@eslint-react"], "react-dom": reactPlugin.configs.all.plugins["@eslint-react/dom"], - "react-hooks": reactHooksPlugin, "react-hooks-extra": reactPlugin.configs.all.plugins["@eslint-react/hooks-extra"], "react-naming-convention": reactPlugin.configs.all.plugins["@eslint-react/naming-convention"], }, @@ -26,8 +23,6 @@ export const react = (): TypedFlatConfigItem[] => { }, rules: { ...reactPlugin.configs.recommended.rules, - ...reactHooksPlugin.configs.recommended.rules, - "react-hooks/exhaustive-deps": "off", }, }, ]; diff --git a/src/utils/extension.ts b/src/utils/extension.ts index 57ac708..3b91e36 100644 --- a/src/utils/extension.ts +++ b/src/utils/extension.ts @@ -7,6 +7,5 @@ export { default as stylisticPlugin } from "@stylistic/eslint-plugin"; export { default as typescriptPlugin } from "@typescript-eslint/eslint-plugin"; export { default as nextjsPlugin } from "@next/eslint-plugin-next"; export { default as reactPlugin } from "@eslint-react/eslint-plugin"; -export { default as reactHooksPlugin } from "eslint-plugin-react-hooks"; export { default as typescriptParser } from "@typescript-eslint/parser"; diff --git a/src/utils/factory.ts b/src/utils/factory.ts index d5db61d..0ade6b2 100644 --- a/src/utils/factory.ts +++ b/src/utils/factory.ts @@ -66,9 +66,9 @@ export const eslintConfig = async ( "@stylistic": "style", "@typescript-eslint": "ts", "n": "node", + "@eslint-react": "react", "@eslint-react/dom": "react-dom", - "react-hooks": "react-hooks", "@eslint-react/hooks-extra": "react-hooks-extra", "@eslint-react/naming-convention": "react-naming-convention", });