Improve newtab linter exclusions for browser/components/newtab/data/
Categories
(Firefox :: New Tab Page, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
Attachments
(2 files)
(This is written for after bug 1938452 lands)
Looking at browser/extensions/newtab/data/
, and the current exclusions we have for linting, I think we have it set up in an incorrect fashion.
Currently ESLint and Prettier exclude all of browser/extensions/newtab/data/
, the license linter excludes browser/extensions/newtab/data/content/tippytop/images/
.
However looking at the files:
/content/activity-stream.bundle.js
is a generated file, and so should be listed inGenerated.txt
content/tippytop/favicons/
andcontent/tippytop/images
both contain third party images, so should/could be listed inThirdPartyPaths.txt
- These are files that we write/control so could be checked under ESLint/Prettier if we remove the global exclusion for the directories:
content/tippytop/topsites.json
content/abouthomecache/*.template
content/newtab-render.js
content/assets/*
Overall, this should make it clearer as to what is actually third party and what's generated.
Assignee | ||
Updated•1 month ago
|
Assignee | ||
Comment 1•20 days ago
|
||
Updated•20 days ago
|
Assignee | ||
Comment 2•20 days ago
|
||
The only significant change here is the re-arrangement of where PdfJsOverridePrefs.js is ignored - moving the main ignore to Generated.txt (it was already excluded from prettier, but not other linters).
The .prettierignore additions are copy/paste updates from the other files to help keep the lists in sync.
Comment 4•19 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7e71cd1b0671
https://hg.mozilla.org/mozilla-central/rev/6e584716a906
Description
•