Bug 1812098 - Enable the builtinGlobals option for ESLint no-shadow rule on .mjs files. r=Gijs

.sys.mjs will be handled in a future dependency of bug 1575506.

Differential Revision: https://phabricator.services.mozilla.com/D169464
This commit is contained in:
Mark Banner 2023-03-14 09:13:49 +00:00
parent 80295c5a70
commit e8664f62d4
2 changed files with 7 additions and 1 deletions

View file

@ -84,6 +84,12 @@ module.exports = {
browser: false,
},
},
{
files: ["browser/components/storybook/**"],
env: {
"mozilla/privileged": false,
},
},
{
files: ["*.mjs"],
rules: {

View file

@ -72,7 +72,7 @@ module.exports = {
rules: {
"mozilla/reject-import-system-module-from-non-system": "error",
"mozilla/reject-lazy-imports-into-globals": "error",
"no-shadow": "error",
"no-shadow": ["error", { allow: ["event"], builtinGlobals: true }],
},
},
{