You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: shared eslint config uses packages the root never declares #896
bugSomething isn't workingciCI, build pipeline, test hygienedependenciesPull requests that update a dependency filehygieneToil, but its useful to get get too behind on itjavascriptPull requests that update Javascript code
The root eslint.config.shared.js requires @eslint/js, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint-plugin-react, and eslint-config-prettier, but the root package.json declares none of them.
Lint works only because ESLint resolves the config's requires from its own location inside pnpm's store: @eslint/js because eslint itself depends on it, the rest through pnpm's internal hoist directory.
Loading the config with plain node fails: node -e "require('./src/core/eslint.config.js')" gives Cannot find module '@eslint/js'.
Why it matters
A dependency update or a pnpm hoisting change can break linting in every package at once, with an error naming a package nobody declared.
The shared config also silently uses whichever plugin version pnpm surfaced, not the one the linted package declares.
No failure has been seen yet.
Fix
Add the five packages plus eslint to the root package.json devDependencies, at the versions the packages already use.
Optionally drop the duplicate per-package declarations so there is a single version of the lint toolchain.
changed the title [-]build: eslint.config.shared.js requires five packages the root package.json never declares (resolves only via pnpm's virtual store)[/-][+]build: shared eslint config uses packages the root never declares[/+]on Oct 12, 2026
bugSomething isn't workingciCI, build pipeline, test hygienedependenciesPull requests that update a dependency filehygieneToil, but its useful to get get too behind on itjavascriptPull requests that update Javascript code
Activity
[-]build: eslint.config.shared.js requires five packages the root package.json never declares (resolves only via pnpm's virtual store)[/-][+]build: shared eslint config uses packages the root never declares[/+]