fix(core-eslint): activate React rules-of-hooks for all TSX surfaces
next.js and react-internal.js are plain re-exports of base, so no rules-of-hooks checking was active anywhere despite three React apps and core-ui. Wire eslint-plugin-react-hooks in base.js scoped to **/*.tsx (non-React packages untouched). Fixes the one violation it surfaced: web-tanstack's root route called Route.useLoaderData inside an anonymous component callback — extracted to a named RootComponent. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
16
pnpm-lock.yaml
generated
16
pnpm-lock.yaml
generated
@@ -733,6 +733,9 @@ importers:
|
||||
eslint-plugin-boundaries:
|
||||
specifier: ^4.2.2
|
||||
version: 4.2.2(@typescript-eslint/parser@8.58.0(eslint@9.39.4(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.4(jiti@2.7.0))
|
||||
eslint-plugin-react-hooks:
|
||||
specifier: ^5.2.0
|
||||
version: 5.2.0(eslint@9.39.4(jiti@2.7.0))
|
||||
eslint-plugin-turbo:
|
||||
specifier: ^2.4.0
|
||||
version: 2.9.4(eslint@9.39.4(jiti@2.7.0))(turbo@2.9.4)
|
||||
@@ -10680,6 +10683,15 @@ packages:
|
||||
peerDependencies:
|
||||
eslint: ">=6.0.0"
|
||||
|
||||
eslint-plugin-react-hooks@5.2.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==,
|
||||
}
|
||||
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-turbo@2.9.4:
|
||||
resolution:
|
||||
{
|
||||
@@ -24134,6 +24146,10 @@ snapshots:
|
||||
- eslint-import-resolver-webpack
|
||||
- supports-color
|
||||
|
||||
eslint-plugin-react-hooks@5.2.0(eslint@9.39.4(jiti@2.7.0)):
|
||||
dependencies:
|
||||
eslint: 9.39.4(jiti@2.7.0)
|
||||
|
||||
eslint-plugin-turbo@2.9.4(eslint@9.39.4(jiti@2.7.0))(turbo@2.9.4):
|
||||
dependencies:
|
||||
dotenv: 16.0.3
|
||||
|
||||
Reference in New Issue
Block a user