--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).
.eslintrcfile in the root of the repository (i.e. where
package.jsonis) and add
root: trueto that file. ESLint merges configs it finds in parent directories without
parser: require.resolve('babel-eslint')inside the package, this trick does not work with plugins.