Check maxWarnings when disabling eslint rules

When disabling eslint rules, check if the repo allows eslint warnings. If not, disable the rule entirely instead of making it warn.

This only works in the simple scenario where Gruntfile specifies maxWarnings: 0. OTOH, that's how this is currently done in all MW repos.

Bug: T263922

Merge request reports

Loading