IF Commons GitHub

Lint

1 specification, 10 requirements. All libraries

0001 Lint

RequirementMechanismWhoNote
FR-001checkbun 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-002checkbun 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-003checkbun 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-004checkbun test suite/plugin.test.ts: no-registry-import refuses npm:, jsr: and URL specifiers in every form of import
FR-005checkbun test suite/plugin.test.ts: import-boundary refuses a relative import that leaves its package
FR-006checkbun test suite/plugin.test.ts: module-doc refuses a file that does not begin with a JSDoc block saying @module
FR-007checkbun test suite/plugin.test.ts: switch-absurd refuses a switch that does not end in a default calling absurd
FR-008checkbun test suite/plugin.test.ts: terminal-writers refuses a write to the terminal outside the allowed files
FR-009checkbun 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-010checkbun run verifythe 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

Titles, headings, exports, tables, columns and requirements. Esc closes.