Closed Bug 1620537 Opened 4 years ago Closed 4 years ago

Upgrade to ESLint 7.x

Categories

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

Tracking

(firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(5 files)

ESLint 7 is in the works (currently alpha 2).

At this stage there doesn't look to be much that is actually breaking, though they are turning on more rules in the recommended config, and enabling linting of .eslintrc.js files by default.

Seeing as those rules and capabilities already exist, I think it would be good to get work started on those ahead of the release, to make upgrading easier.

Depends on: 1620542
Depends on: 1620552

Going to take this and turn it into an implementation bug rather than a meta - bug 1620552 can be done after this one and we'll probably use mentored bugs for it.

Assignee: nobody → standard8
Blocks: 1595810, 1620552
Points: --- → 3
No longer depends on: 1620552
Keywords: meta
Priority: -- → P2
Summary: [meta] ESLint 7 upgrade support → Upgrade to ESLint 7.x

There's two issues being fixed here - the first is that no-unused-vars now reports against the last instance of the unused variable. The second is no-dupe-else-if is now on by default.

Depends on D84816

Iteration: --- → 80.2 - July 13 - July 26
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7c073842299d
Disable no-setter-return where it is failing pending future re-enabling. r=mossop
https://hg.mozilla.org/integration/autoland/rev/377c6af23652
Fix eslint issues in devtools .eslintrc*.js files now that ESLint 7 will lint them. r=mossop
https://hg.mozilla.org/integration/autoland/rev/ca98135c331b
Fix more ESLint issues raised after upgrading to ESlint 7. r=mossop
https://hg.mozilla.org/integration/autoland/rev/b9a6c2958b1c
Fix issues in eslint-plugin-mozilla rules that were raised in ESLint 7. r=mossop
https://hg.mozilla.org/integration/autoland/rev/2d8ae00226d3
Upgrade to ESLint 7.5.0, remove now unnecessary Babel plugins. r=mossop
See Also: → 1655254
Blocks: 1684905
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: