Rules Hub
Coding Rules Library
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Justify every linter-disable comment with a real reason
Replace placeholder suppression comments with a concrete explanation of why the rule is disabled at that line.
Bad example
| 1 | // biome-ignore lint/suspicious/noExplicitAny: <explanation> |
| 2 | protected itemToEntity(item: any): Entity { /* ... */ } |
Explanation (EN)
The placeholder text adds no information; nobody can later judge whether the suppression is still warranted.
Objašnjenje (HR)
Tekst-rezerva ne donosi nikakvu informaciju; nitko kasnije ne može procijeniti je li suppression i dalje opravdan.
Good example
| 1 | // biome-ignore lint/suspicious/noExplicitAny: parent class signature passes untyped raw items |
| 2 | protected itemToEntity(item: any): Entity { /* ... */ } |
Explanation (EN)
The reason documents the constraint, so a future reader can verify or remove the suppression once the constraint is gone.
Objašnjenje (HR)
Razlog dokumentira ograničenje, pa budući čitatelj može provjeriti ili ukloniti suppression kad ograničenje nestane.
Notes (EN)
Applies equally to eslint-disable, ts-expect-error, and similar directives.
Bilješke (HR)
Vrijedi jednako za eslint-disable, ts-expect-error i slične direktive.