Closed Bug 1578683 Opened 6 years ago Closed 6 years ago

Turn on ESLint rule prefer-boolean-length-check for toolkit and browser

Categories

(Toolkit :: General, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: standard8, Assigned: MonikaMaheshwari)

References

Details

Attachments

(1 file)

In bug 1578190 we've landed a rule for removing length comparisons where we're doing == 0 or > 0 (etc).

We would like to start rolling that out, beginning with toolkit/ and browser/

I think rather than adding this to recommended.js to begin with, we should add it to the list in the top-level .eslintrc.js and enable the rule for toolkit/ and browser/.

Okay will start with that :)

Attachment #9092274 - Attachment description: rule applied on toolkit and browser → Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1bbabcc98f00 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Blocks: 1588872
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: