Linting
Lint / Linter (ESLint)
A spell checker for code that finds mistakes and messy parts before you run it.
💡 It's the spell check in a writing app. A red underline tells you 'something's off here'.
🤖 Say this to your AI
Run npm run lint and fix every warning and error it shows. Don't turn off rules or hide them with eslint-disable; fix the cause.
The key word is ‘Lint / Linter (ESLint)’. Including it helps AI understand you much more precisely.
📌 Good to know
The tool that automatically fixes line breaks and spacing is called 'Prettier' (a formatter). A linter catches mistakes; a formatter fixes how code looks.
When to use it
- When an 'ESLint' error stops your build
- When your code editor is full of yellow and red underlines
- When you ask the AI to clean up your code
Also called: lint, linter, eslint, prettier, formatter, code check, warnings, yellow underline