banira lint

Audit components against a subset of the Gold Standard Checklist plus documentation coverage of their public surface — reflection, overridable :host styles, and documented events/attributes/parts/slots.

Usage

$ banira lint <files...> [options]

Arguments

ArgumentDescription
<files...>Component source files to lint.

Options

OptionDescription
--strictTreat warnings as errors and exit non-zero if any finding (for CI).
--rules <ids>Comma-separated rule ids to run (default: all).
--jsonEmit findings as JSON.

Examples

lint every element
$ banira lint src/*.ts
fail CI on any finding
$ banira lint src/*.ts --strict

Notes

Each element is mounted in JSDOM and checked by independent, id'd rules: reflection, host-overridable, and the documentation-coverage rules undocumented-event / -attribute / -part / -slot. Findings are advisory warnings by default (exit 0); --strict makes them fail the build.