// `npm run lint` (plan step 6.1; 6.14b: all of src is v2): ESLint over src, the config, the // scripts and the tests. v2.json `strict` (eslint.config.js) adds the no-setState-in-effect rule. import { spawnSync } from 'node:child_process' const r = spawnSync('npx', ['eslint', 'eslint.config.js', 'scripts', 'tests', 'src'], { stdio: 'inherit', shell: process.platform === 'win32' }) process.exit(r.status ?? 1)