// `npm run lint` (plan step 6.1): ESLint over the code on the v2 rules (v2.json `paths`), the // config and the tests. `npx eslint src` shows everything, older pages included. import { spawnSync } from 'node:child_process' import { readFileSync } from 'node:fs' const v2 = JSON.parse(readFileSync(new URL('../v2.json', import.meta.url), 'utf8')) const r = spawnSync('npx', ['eslint', 'eslint.config.js', 'scripts', 'tests', ...v2.paths], { stdio: 'inherit', shell: process.platform === 'win32' }) process.exit(r.status ?? 1)