Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP2universalStack: Node tooling
toolinglintingnpm-scriptsdx
Avoid --fix in shared lint scripts; reserve autofix for pre-commit
A package lint script should report errors so developers can decide; auto-fixing on every run is best limited to pre-commit hooks.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codejson
| 1 | { |
| 2 | "scripts": { |
| 3 | "lint:oxc": "oxlint --fix" |
| 4 | } |
| 5 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | { |
| 2 | "scripts": { |
| 3 | "lint:oxc": "oxlint" |
| 4 | } |
| 5 | } |
| 6 | // run --fix only from the pre-commit hook |
Explanation (EN)
Objašnjenje (HR)