Improve and simplify newtab's ESLint configuration
Categories
(Firefox :: New Tab Page, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
I'd like to tidy up newtab's ESLint setup a bit:
- Only specify the browser/mochitest configurations and environments (node) where they should be used (the test directories).
- Remove rule definitions that are turning off rules but have no effect as the rule is already off.
- Remove/replace some redundant rules.
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D166194
Assignee | ||
Comment 3•2 years ago
|
||
These rules are not enabled by default in either the ESLint or Mozilla recommended configs. Some of the rules are deprecated.
Depends on D166195
Assignee | ||
Comment 4•2 years ago
|
||
The 'strict' rule is only enabled for mjs files, as per Mozilla's recommended config.
Depends on D166196
Assignee | ||
Comment 5•2 years ago
|
||
no-catch-shadow has been replaced by no-shadow, which is already enabled.
no-label-var is unnecessary, as no-label is enabled everywhere already.
no-negated-in-lhs has been replaced by no-unsafe-negation which is an ESLint recommended rule and is enabled everywhere.
Depends on D166197
Updated•2 years ago
|
Comment 7•2 years ago
|
||
Backed out 5 changesets (Bug 1808941) for causing newtab failures.
Backout link
Push with failures <--> newtab
Failure Log
Assignee | ||
Comment 8•2 years ago
|
||
Oh, two files touched the activity stream bundle which ends up with a little bit of whitespace change. Fixed & will re-land.
Comment 10•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b7e7f340c9fa
https://hg.mozilla.org/mozilla-central/rev/17754c33a573
https://hg.mozilla.org/mozilla-central/rev/c3a091f9da07
https://hg.mozilla.org/mozilla-central/rev/6497b86debb2
https://hg.mozilla.org/mozilla-central/rev/eb074e92561d
Comment 11•2 years ago
|
||
Thanks!
Description
•