Closed
Bug 1842869
Opened 1 year ago
Closed 1 year ago
Simplify and fix newtab's ESLint configuration
Categories
(Firefox :: New Tab Page, task, P1)
Firefox
New Tab Page
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The newtab ESLint configuration is still largely set up as if it was being managed in a separate repository. Additionally the way it is set up causes confusion and complications.
I am working on some clean up which will:
- Remove extending the configuration from
eslint:recommended
andplugin:mozilla/recommended
- these are not required since the newtab directory inherits from the top-level.eslintrc.js
of the source directory.- This also means we don't have to redo the application of test configurations to xpcshell & browser tests.
- Stops marking everything as a module. This was causing issues such as:
- enabling no-unused-vars at the global scope on the head.js files for tests,
- not enabling rules when they should be enabled as they don't apply to modules.
- Collapses the configurations from the content-src and test directories into
browser/components/newtab/.eslintrc.js
- This centralises everything and makes it easier to know what applies.
- Disables
no-insecure-url
on a line/file basis rather than in the main configuration (the general idea is to do this). - Fixes some ESLint issues that are raised due to the fixed configuration.
Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Blocks: fxms-build
Updated•1 year ago
|
Status: NEW → ASSIGNED
Iteration: --- → 117.1 - July 3 - July 14
Priority: -- → P1
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5885b3e8a831
Simplify and fix newtab's ESLint configuration. r=aminomancer
Pushed by nfay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d424b425d884
Fix lint failure on MultiSelect.jsx, FeatureCalloutBroker.sys.mjs CLOSED TREE
Comment 4•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5885b3e8a831
https://hg.mozilla.org/mozilla-central/rev/d424b425d884
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox117:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•