Skip to content

Commit 5d283a4

Browse files
committed
docs: add 'never ignore lint warnings' working principle
1 parent 6d385dd commit 5d283a4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,10 @@ Requires Node >= 20.
190190
* If something goes sideways, STOP and re-plan immediately – don't keep pushing
191191
* Use plan mode for verification steps, not just building
192192
* Write detailed specs upfront to reduce ambiguity
193+
194+
### 2. Never Ignore Lint Warnings
195+
196+
* Never silently skip or dismiss linting/formatting warnings — always check whether they are relevant to the current change
197+
* If a warning fires on code you touched, fix it
198+
* If a warning fires on code you didn't touch, mention it to the user but don't fix it (per the "don't clean up other sessions' files" rule)
199+
* Run `npm run lint` after editing code and review the output — do not assume warnings are spurious

0 commit comments

Comments
 (0)