@webOS101 --max-warnings
only takes into account warnings left after autofix.
In practice this means non-autofixable warnings, although it could also happen if one rule's autofix causes a violation in another rule, and that rule's autofix causes a violation in another rule, etc. (in such a way that there is a cycle/loop). ESLint bails out after 10 autofix attempts, so in that degenerate case, an autofixable rule could fix and still leave a warning (on the 10th pass).
.eslintrc
file in the root of the repository (i.e. where package.json
is) and add root: true
to that file. ESLint merges configs it finds in parent directories without root: true
set.