Bump eslint-plugin-import-x, eslint-plugin-jest, eslint-plugin-jsdoc,
eslint-plugin-n, eslint-plugin-prettier, eslint-plugin-promise, prettier,
and @lavamoat/allow-scripts to current ranges.
eslint-import-resolver-typescript stays at ^3.6.3 to satisfy the peer
range of @metamask/eslint-config-typescript@15.
eslint-plugin-n >=17.24 tracks import.meta.dirname, which requires
Node >=20.11 and violates n/no-unsupported-features/node-builtins under
engines.node >=20. Replace it with dirname(fileURLToPath(import.meta.url))
in eslint.config.mjs.
New eslint-plugin-import-x pulls unrs-resolver, added to the LavaMoat
allow-scripts denylist.
Explanation
Bumps the root lint/format devDependencies to current ranges:
eslint-plugin-import-x,eslint-plugin-jest,eslint-plugin-jsdoc,eslint-plugin-n,eslint-plugin-prettier,eslint-plugin-promise,prettier,@lavamoat/allow-scripts. Root-only tooling; no package code changes.Two required follow-ons included:
eslint-plugin-n≥17.24 flagsimport.meta.dirnameas unsupported underengines.node: >=20(needs Node ≥20.11). Replaced withdirname(fileURLToPath(import.meta.url))ineslint.config.mjs. This was latent onmain— any lockfile refresh would have brokenyarn lint.eslint-plugin-import-xpullsunrs-resolver; added to the LavaMoat allow-scripts denylist.eslint-import-resolver-typescriptintentionally stays at^3.6.3— 4.x violates the peer range of@metamask/eslint-config-typescript@15.Verified:
yarn lint,yarn build,yarn testall green.References
N/A
Checklist