Linting
PronunciationLIN-ting
Definition
Running a tool (a linter such as ESLint) that automatically finds style problems and likely mistakes in your code.
Where you hear it
CI checks and team coding standards.
Examples
The linter found an unused variable.
Run the linter before you push.
The linting step fails the build when a variable is declared and never used.
Common mistake
Disabling lint rules whenever they are annoying. Fix the cause, or agree on the rule with the team.
Don't confuse with
Linting is often confused with formatting; linting focuses on finding potential logic errors and code quality issues, while formatting only manages the visual style and layout of the code.
Say it at work
- In a meeting or chat
Could you please check why the linting is failing in the current branch?
- In an email or ticket
I have updated the configuration to ensure the linting process catches these specific syntax patterns.
Keep exploring
More in Testing & Quality