[meta] Turn on builtinGlobals for ESLint's no-redeclare rule for module files
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox132 fixed)
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Keywords: meta)
Attachments
(1 file, 1 obsolete file)
After the upgrade to ESLint 6, we have support for checking for redeclare of built-in globals in the global scope.
To make the upgrade easiler, this was turned off, however, after the upgrade, we should be able to turn it on at least for .jsm scope.
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
Note: for ES modules, we would need "no-shadow": ["error", { builtinGlobals: true }], because the global scope is treated differently in modules.
| Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Comment on attachment 9317039 [details]
Bug 1575506 - Fix ESLint raised issues with no-shadow of builtinGlobals in toolkit .mjs files. r?Gijs!
Revision D169462 was moved to bug 1812098. Setting attachment 9317039 [details] to obsolete.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
Backed out for causing node newtab failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/26f637a20dc180da705cb962f1c6acc84cd98277
Failure log -> TEST-UNEXPECTED-FAIL | bundles | about:asrouter bundle out of date
| Assignee | ||
Updated•1 year ago
|
Description
•