Lint
1 specification, 10 requirements. All libraries
0001 Lint
| Requirement | Mechanism | Who | Note |
|---|---|---|---|
FR-001 | check | bun test suite/ | plugin.test.ts: the plugin is in ESLint's format, named ifc, with the six rules, each with a description, no schema and a create function |
FR-002 | check | bun test suite/ | plugin.test.ts: options that do not decode are reported and no rule runs; a harness's own rule made with defineRule is loaded by bun lint --plugin |
FR-003 | check | bun test suite/ | plugin.test.ts: no-vendor-api refuses a vendor's global in code and in types outside the allowed files, through the real bun lint |
FR-004 | check | bun test suite/ | plugin.test.ts: no-registry-import refuses npm:, jsr: and URL specifiers in every form of import |
FR-005 | check | bun test suite/ | plugin.test.ts: import-boundary refuses a relative import that leaves its package |
FR-006 | check | bun test suite/ | plugin.test.ts: module-doc refuses a file that does not begin with a JSDoc block saying @module |
FR-007 | check | bun test suite/ | plugin.test.ts: switch-absurd refuses a switch that does not end in a default calling absurd |
FR-008 | check | bun test suite/ | plugin.test.ts: terminal-writers refuses a write to the terminal outside the allowed files |
FR-009 | check | bun test suite/ | plugin.test.ts: every rule is proved against the real bun lint, run by lintFiles; skipped with its reason where the pinned canary is not installed |
FR-010 | check | bun run verify | the package is built, inspected and packed by tools/pack.ts; tests/commons-packages.test.ts installs the tarball, runs every entry on Node 26 and Bun, type-checks a consumer and runs bun lint --plugin with the installed plugin |