You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though addons-linter supports disabling specific rules, it seems that there is no way to use this feature when invoking web-ext lint. Based on a very quick glance at the code, maybe fixing this is as simple as adding disableLinterRules here?
// This mimics the first command line argument from yargs, which should be
// the directory to the extension.
_: [sourceDir],
};
The only workaround seems to be to ignore whole files, but this is undesirable for the same reason it's undesirable in other linters like eslint: it runs the risk of missing other rule violations in the ignored file.
Activity
WIP: try and fail to disable specific web-ext lint rules
Rob--W commentedon Jan 30, 2025
We're supportive of a way to ignore specific rules. Patches are welcome!
aspiers commentedon Jan 30, 2025
Thanks. Do you happen to know if my surface-deep assessment above is along the right lines?
Rob--W commentedon Jan 30, 2025
Looks reasonable. The config will be read and forwarded internally by https://github.com/mozilla/addons-linter/blob/c5a1c2c73a44935451628bba5e3d1249cbdfad27/src/linter.js#L430
giri256 commentedon Jul 24, 2026
I’m working on exposing
disableLinterRulesthrough web-ext configuration/CLI and forwarding it to addons-linter, with unit tests.