ESLint
Use ESLint to find and fix problems in your codebase. ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code, with the goal of making code more consistent and avoiding bugs.
Refer to official documentation for detailed usage. →
ESLint is designed to be flexible and configurable for your use case. You can turn off every rule and run only with basic syntax validation or mix and match the bundled rules and your custom rules to fit the needs of your project.
You can tell ESLint to ignore specific files and directories in your config files.
caution
All required configurations will be handled automatically by CLI as long as you choose plugins during the project creation phase.
#
Adding ESLint to your project later- npm
- yarn
If you want to use Prettier with ESLint, you need to add the following packages.
If you want to use Prettier with ESLint, you need to add the following packages.