Closed Bug 1575506 Opened 6 years ago Closed 1 year ago

[meta] Turn on builtinGlobals for ESLint's no-redeclare rule for module files

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
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.

Product: Firefox Build System → Developer Infrastructure
Severity: normal → S3

Note: for ES modules, we would need "no-shadow": ["error", { builtinGlobals: true }], because the global scope is treated differently in modules.

Summary: [meta] Turn on builtinGlobals for ESLint's no-redeclare rule for jsm files → [meta] Turn on builtinGlobals for ESLint's no-redeclare rule for module files
See Also: → 1795255
Depends on: 1810567
Depends on: 1812098
Assignee: nobody → standard8
Status: NEW → ASSIGNED

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.

Attachment #9317039 - Attachment is obsolete: true
Assignee: standard8 → nobody
Status: ASSIGNED → NEW
Blocks: 1917529
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c963e72cf06 Enable ESLint rule no-redeclare with builtinGlobals on all module and worker files. r=frontend-codestyle-reviewers,devtools-reviewers,nchevobbe,mossop
Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a39a42b27b48 Enable ESLint rule no-redeclare with builtinGlobals on all module and worker files. r=frontend-codestyle-reviewers,devtools-reviewers,nchevobbe,mossop
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
See Also: → 1918630
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: