Simplify the ESLint configuration for aboutwelcome/asrouter/newtab
Categories
(Firefox :: Messaging System, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1878554 - Remove ESLint rule require-await for aboutwelcome/asrouter/newtab code. r?aminomancer!
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
The newtab ESLint configuration (and asrouter/aboutwelcome configs) have a lot of ESLint rules/configuration that can be simplified, is now redundant, or is using rules that are deprecated.
I want to start tidying this all up, so that it is clearer to see the differences with respect to the rest of mozilla-central.
This depends on bug 1878553 as that's cleaning up some configuration for the .jsx
/.config.js
files that reside in these directories.
Assignee | ||
Comment 1•8 months ago
|
||
The parser option was added globally for jsx files in bug 1878009.
Assignee | ||
Comment 2•8 months ago
|
||
Assignee | ||
Comment 3•8 months ago
|
||
It is already enabled as a recommended rule.
Assignee | ||
Comment 4•8 months ago
|
||
We decided not to use the rule in bug 1381030.
Assignee | ||
Comment 5•8 months ago
|
||
These rules are node specific and not really useful in mozilla central:
handle-callback-err, no-buffer-constructor, no-path-concat, no-process-exit
These rules are not useful as require is only used in configurations:
no-new-require, no-mixed-requires
Prettier already enforces max-statements-per-line
lines-between-class-members isn't handled separately, but if we want to do that we should decide on it globally.
Updated•8 months ago
|
Comment 7•8 months ago
|
||
Backed out for causing node failures in aboutwelcome
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | karma /builds/worker/checkouts/gecko/browser/components/aboutwelcome | Coverage for statements (48.15%) in file /builds/worker/checkouts/gecko/browser/components/aboutwelcome/modules/AboutWelcomeDefaults.sys.mjs does not meet per file threshold (80%)
Comment 10•8 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8272abef76b2
https://hg.mozilla.org/mozilla-central/rev/0c0f447b3a7b
https://hg.mozilla.org/mozilla-central/rev/817e069874f1
https://hg.mozilla.org/mozilla-central/rev/c665c72c14a2
https://hg.mozilla.org/mozilla-central/rev/674695b55e88
Description
•