Closed Bug 1554224 Opened 5 years ago Closed 5 years ago

Enable some ESLint rules for more of layout/

Categories

(Core :: Layout, task)

task
Not set
normal
Points:
2

Tracking

()

RESOLVED FIXED
mozilla69
Iteration:
69.1 - May 13 - 26
Tracking Status
firefox69 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

As part of rolling out ESLint across the tree, I'd like to enable it for the layout/ directory.

The first stage to this is enabling ESLint on the directories, and disabling the rules that fail. This gives us the benefit of at least syntactical checks to begin with plus some rules being enabled.

Some of the disabled rules are style related, those we'll defer to later as we're looking into rolling out js formatting across the tree (and might as well take the reformatting hit one-time).

For enabling the other rules I will file mentored follow-up bug(s) after this lands.

The code changes I'm landing in this bug are for supporting the ESLint rule no-shadow. These were fairly simple there was just quite a few of them. There were one or two places I whitelisted, as it didn't make sense to fix the whole file.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9dcf4317c50c Enable some ESLint rules for more of layout/. r=dholbert
Blocks: 1555300
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2283a3e7f2de Fix failures on test_media_queries. r=Standard8
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Iteration: --- → 69.1 - May 13 - 26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: