Change the jsdoc set-up to be an allow list of failing directores in the top-level .eslintrc.js
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox126 fixed)
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Following on from bug 1510561, we should re-arrange our ESLint configuration for our jsdocs so that it is controlled from the top-level .eslintrc.js file.
The aims of this are:
- Provide a central location to check where jsdoc is enabled or not.
- Make it easier to enable on new directories.
- Make it default to enabled for new directories/components.
Assignee | ||
Comment 1•3 years ago
|
||
Given where these rules currently are enabled, we should split up browser/
and toolkit/
into sub-directories, whereas I think the rest of the top-level directories can be disabled only if they are currently failing, e.g. something along these lines:
{
extends: ["plugin:mozilla/valid-jsdoc"],
files: ["**/**"],
excludedFiles: [
"accessible/**",
"browser/actors/**",
"browser/base/**",
"browser/components/aboutlogins/**",
"layout/**",
"dom/**",
],
},
Would this be both require-jsdoc
and valid-jsdoc
or just valid-jsdoc
?
Assignee | ||
Comment 3•3 years ago
|
||
(In reply to trickypr from comment #2)
Would this be both
require-jsdoc
andvalid-jsdoc
or justvalid-jsdoc
?
It would be both, but at the moment I'm reconsidering how we want to enable these. For example, it may be better/easier for us to enable some of automatically fixable rules globally to begin with, which I think would mean that we could have less in the exclude list.
I started playing around with this last week, but I still need to look a bit further.
Assignee | ||
Comment 4•3 years ago
|
||
@trickypr: If you're still interested in this, then I think we could change the config as per my original comment. I'm not sure it is worth trying to auto-fix areas at this stage.
Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
Description
•