Linting
Code linting is a type of static analysis— like a spell-checker for your code. It flags issues such as:
- Syntax errors
- Stylistic errors
- Potential bugs
- Non-adherence to coding standards
ESLint
- The most popular and flexible linter for JavaScript.
- Most modern code editors, like VSCode, have plugins/extensions for ESLint, providing real-time linting feedback as you type.
Prettier
Prettier automatically formats your code, targeting spaces, indentation, and line-breaks.