diff --git a/eslint.config.mjs b/eslint.config.mjs index 0b39d684..c93ab458 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -35,15 +35,14 @@ export default defineConfig( // }, // }, // }), + reactHooks.configs.flat.recommended, { files: ['src/**/*.{jsx,tsx}'], plugins: { 'jsx-a11y': jsxA11yPlugin, '@stylistic': stylistic, - 'react-hooks': reactHooks, }, extends: [ - 'react-hooks/recommended', ...compat.config(jsxA11yPlugin.configs.recommended), ], settings: { diff --git a/package.json b/package.json index 39858e29..4fe43da2 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "eslint-plugin-import": "^2.32.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-react": "^7.37.5", - "eslint-plugin-react-hooks": "^6.1.1", + "eslint-plugin-react-hooks": "^7.0.0", "pnpm": "^10.18.1", "rimraf": "^6.0.1", "typescript": "^5.9.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0e5bd268..644b729e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,8 +103,8 @@ importers: specifier: ^7.37.5 version: 7.37.5(eslint@9.37.0) eslint-plugin-react-hooks: - specifier: ^6.1.1 - version: 6.1.1(eslint@9.37.0) + specifier: ^7.0.0 + version: 7.0.0(eslint@9.37.0) pnpm: specifier: ^10.18.1 version: 10.18.1 @@ -1025,8 +1025,8 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - baseline-browser-mapping@2.8.13: - resolution: {integrity: sha512-7s16KR8io8nIBWQyCYhmFhd+ebIzb9VKTzki+wOJXHTxTnV6+mFGH3+Jwn1zoKaY9/H9T/0BcKCZnzXljPnpSQ==} + baseline-browser-mapping@2.8.14: + resolution: {integrity: sha512-GM9c0cWWR8Ga7//Ves/9KRgTS8nLausCkP3CGiFLrnwA2CDUluXgaQqvrULoR2Ujrd/mz/lkX87F5BHFsNr5sQ==} hasBin: true brace-expansion@1.1.12: @@ -1367,8 +1367,8 @@ packages: 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-hooks@6.1.1: - resolution: {integrity: sha512-St9EKZzOAQF704nt2oJvAKZHjhrpg25ClQoaAlHmPZuajFldVLqRDW4VBNAS01NzeiQF0m0qhG1ZA807K6aVaQ==} + eslint-plugin-react-hooks@7.0.0: + resolution: {integrity: sha512-fNXaOwvKwq2+pXiRpXc825Vd63+KM4DLL40Rtlycb8m7fYpp6efrTp1sa6ZbP/Ap58K2bEKFXRmhURE+CJAQWw==} engines: {node: '>=18'} peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 @@ -1534,8 +1534,8 @@ packages: resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} engines: {node: '>= 0.4'} - get-tsconfig@4.11.0: - resolution: {integrity: sha512-sNsqf7XKQ38IawiVGPOoAlqZo1DMrO7TU+ZcZwi7yLl7/7S0JwmoBMKz/IkUPhSoXM0Ng3vT0yB1iCe5XavDeQ==} + get-tsconfig@4.12.0: + resolution: {integrity: sha512-LScr2aNr2FbjAjZh2C6X6BxRx1/x+aTDExct/xyq2XKbYOiG5c0aK7pMsSuyc0brz3ibr/lbQiHD9jzt4lccJw==} glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} @@ -1601,6 +1601,12 @@ packages: hast-util-whitespace@3.0.0: resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + hermes-estree@0.25.1: + resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==} + + hermes-parser@0.25.1: + resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} + hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} @@ -3632,7 +3638,7 @@ snapshots: balanced-match@1.0.2: {} - baseline-browser-mapping@2.8.13: {} + baseline-browser-mapping@2.8.14: {} brace-expansion@1.1.12: dependencies: @@ -3649,7 +3655,7 @@ snapshots: browserslist@4.26.3: dependencies: - baseline-browser-mapping: 2.8.13 + baseline-browser-mapping: 2.8.14 caniuse-lite: 1.0.30001749 electron-to-chromium: 1.5.233 node-releases: 2.0.23 @@ -3964,7 +3970,7 @@ snapshots: eslint-import-context@0.1.9(unrs-resolver@1.11.1): dependencies: - get-tsconfig: 4.11.0 + get-tsconfig: 4.12.0 stable-hash-x: 0.2.0 optionalDependencies: unrs-resolver: 1.11.1 @@ -3982,7 +3988,7 @@ snapshots: '@nolyfill/is-core-module': 1.0.39 debug: 4.4.3 eslint: 9.37.0 - get-tsconfig: 4.11.0 + get-tsconfig: 4.12.0 is-bun-module: 2.0.0 stable-hash: 0.0.5 tinyglobby: 0.2.15 @@ -3997,7 +4003,7 @@ snapshots: debug: 4.4.3 eslint: 9.37.0 eslint-import-context: 0.1.9(unrs-resolver@1.11.1) - get-tsconfig: 4.11.0 + get-tsconfig: 4.12.0 is-bun-module: 2.0.0 stable-hash-x: 0.2.0 tinyglobby: 0.2.15 @@ -4118,11 +4124,12 @@ snapshots: dependencies: eslint: 9.37.0 - eslint-plugin-react-hooks@6.1.1(eslint@9.37.0): + eslint-plugin-react-hooks@7.0.0(eslint@9.37.0): dependencies: '@babel/core': 7.28.4 '@babel/parser': 7.28.4 eslint: 9.37.0 + hermes-parser: 0.25.1 zod: 4.1.12 zod-validation-error: 4.0.2(zod@4.1.12) transitivePeerDependencies: @@ -4354,7 +4361,7 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.3.0 - get-tsconfig@4.11.0: + get-tsconfig@4.12.0: dependencies: resolve-pkg-maps: 1.0.0 @@ -4453,6 +4460,12 @@ snapshots: dependencies: '@types/hast': 3.0.4 + hermes-estree@0.25.1: {} + + hermes-parser@0.25.1: + dependencies: + hermes-estree: 0.25.1 + hoist-non-react-statics@3.3.2: dependencies: react-is: 16.13.1