eslint
ESLint Exit Codes
Exit codes returned by the ESLint CLI. They distinguish a clean lint pass from linting errors or tool configuration failures.
3 codes
· All codes 3 codes
- 0 Linting Successful, No Errors Linting completed successfully with no rule violations. If `--max-warnings` is set and warnings are within the limit, the exit code is still 0.
- 1 Linting Errors Found Linting succeeded, but at least one rule reported an error; or the number of warnings exceeded the `--max-warnings` threshold. Fix the reported violations or adjust the ESLint configuration.
- 2 Linting Failed (Configuration or Internal Error) ESLint could not run due to a configuration problem (missing config file, invalid rule options, unparseable source file) or an internal error. Check the ESLint config and ensure all plugins and parsers are installed.