Repository navigation
chore(lint): lint scripts/ with Node globals, run it in CI - #642
Conversation
npm run lint and CI only linted src/, so the three .mjs scripts carried 33 no-undef errors (console, process, fetch...) that nothing reported. Declare Node globals for scripts/** via the globals package (dev-only, zero deps), lint src/ and scripts/, and have CI call npm run lint so the two cannot drift. A real undefined name in a script still errors.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
npm run lintand CI only lintedsrc/, soscripts/*.mjs(smoke-dist, sync-brand-numbers, e2e-multiturn) carried 33no-undeferrors on Node globals (console,process,fetch,AbortSignal,TextDecoder) that nothing reported.eslint.config.js:scripts/**/*.{js,mjs,cjs}getglobals.node(new devDependencyglobals@^17.14.0: 22 days old, zero deps, dev-only, never bundled). Lockfile change is that one entry.npm run lintcoverssrc/andscripts/; CI's Lint step callsnpm run lintinstead of its ownnpx eslint src/, so the two cannot drift.Verified: lint clean; a genuinely undefined name in a script still errors (
no-undef); prettier clean.Summary by CodeRabbit