npm run lint: authoritative repo-wide validation. Runs Standard for JavaScript and MJS sources, regenerates TypeScript declarations, verifies third-party dependency fetch defaults and recursive submodule fetches use CI-safe HTTPS GitHub URLs, runs oxlint, checks Prettier-managed files, and runs cpplint.npm run lint:fix: applies the supported auto-fixes, regenerates TypeScript declarations, and rewrites Prettier-managed files.npm run test:lint: compatibility alias fornpm run lint.npm run test:lint:ci: compatibility alias for the CI-safe lint entrypoint with a writable Standard cache path.
standardowns*.js,*.mjs, and*.cjs.prettierowns Markdown, JSON, YAML, CSS, and other non-JavaScript text formats.- Generated API declarations under
api/**/*.d.tsare validated bynpm run gen:tsc, not hand-formatted. oxlintadds additional JavaScript diagnostics across the repo.cpplintvalidates the native C and C++ surface insrc/andinclude/.lint:cpprunspython3 -m cpplint, so local environments need Python 3 plus thecpplintpackage. CI installs it explicitly.lint:depsrejects SSH-style GitHub URL defaults and recursive submodule fetch paths in installer scripts so public dependency fetches remain usable on hosted CI and downstream machines without SSH credentials.
- Run
npm run gen:tscafter changing public JSDoc that affects shipped declarations. - Do not hand-edit generated declaration artifacts such as
api/index.d.tsorapi/index.tmp.d.ts. - If
npm run lintchanges generated files, review and keep those updates with the source edits that required them.
- Run
npm run lint. - If you changed docs or public APIs, also run
npm run gen. - Keep source edits and their required generated artifacts in the same change.