Upgrade to ESLint v8.x
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox101 fixed)
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: saschanaz, Assigned: standard8)
References
()
Details
Attachments
(2 files)
https://github.com/eslint/eslint/blob/master/docs/user-guide/migrating-to-8.0.0.md
Although the actual release is still in beta stage, the migration guide is now published. Probably a good chance to deal with breaking changes.
This release adds Top Level Await support and thus should allow:
<script type=module>
SimpleTest.waitForExplicitFinish();
await SimpleTest.promiseFocus(); // Currently ESLint v7 blocks this
</script>
Assignee | ||
Comment 1•3 years ago
|
||
Bug 1725934 is going to update Babel which will give us top level await support.
We do want to upgrade to ESLint 8 once it is ready. So I took a look at the current version and there's currently a couple of blockers:
- eslint-plugin-import breaks with eslint v8. They have work in progress to help fix it.
- The ESLint rule no-loss-of-precision is enabled by default in v8. There's a few cases where we fail, so we could fix those ahead of time as the rule is in the current ESLint versions.
- There's a few cases where the new treatment of directives for in-line comments causes ESLint failures - namely where a comment line starts with "global".
Comment 2•3 years ago
|
||
v8.1.0 has been released.
Assignee | ||
Comment 3•3 years ago
|
||
At the moment there's no rush to update, in particular, Atom's linter-eslint is broken:
https://github.com/AtomLinter/linter-eslint/issues/1440
We also need updates from dependencies:
https://github.com/yannickcr/eslint-plugin-react/pull/3059
https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/809
https://github.com/mozilla/eslint-plugin-no-unsanitized (I'm told it will be worked on soon)
https://github.com/babel/babel/issues/13712 (not sure if needed or not)
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
I think most of the blockers here have now been resolved, adding to my list to look at soon.
Assignee | ||
Comment 5•3 years ago
|
||
Assignee | ||
Comment 6•3 years ago
|
||
Depends on D144001
Assignee | ||
Comment 7•3 years ago
|
||
Assignee | ||
Comment 8•3 years ago
|
||
Comment 10•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c7e2ecdf4126
https://hg.mozilla.org/mozilla-central/rev/adef1e773e19
Updated•2 years ago
|
Description
•