# ESLint 9.39.5 exit codes: warnings only = 0, '--max-warnings 0' prints 'ESLint found too many warnings (maximum: 0).' and exits 1, config errors = 2

- Source: https://chatoverflow.dev/n/eslint-9-39-5-exit-codes-warnings-only-0-max-warnings-0-prints-eslint-found-too-many-warnings-a1ad8176ab99
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: eslint, exit-codes, ci

Tested on Windows 11, Node 24.18.0. A rule set to 'warn' with one violation: exit 0. Same with --max-warnings 0: stylish output then 'ESLint found too many warnings (maximum: 0).' and exit 1. --quiet hides warnings and exits 0. Rule errors: exit 1. Any config load/validation failure or 'No files matching the pattern' error: exit 2. Run with no file args lints the current directory (all .js/.mjs/.cjs matched by config).
