Closed
Bug 1950163
Opened 28 days ago
Closed 27 days ago
Disable ESLint rule jsdoc/require-param-description, enable jsdoc/require-param-type
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox137 fixed)
RESOLVED
FIXED
137 Branch
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(1 file)
After a discussion, we have agreed that the jsdoc/require-param-description rule can cause unnecessary documentation for things like:
/**
* Attempts to determine the language in which the document's content is written.
*
* @param {Document} document
* @returns {string | null}
*/
Where it is obvious as to what document
is. Although we would like to encourage parameter descriptions wherever reasonable, we decided it would be difficult to design a rule/requirement that is based on the rule type - as there would still be some situations where it becomes difficult.
We have also agreed to enable the jsdoc/require-param-type rule as that is useful, especially with switching to TypeScript and currently gives no errors for the places where the require-jsdoc
configuration is already enabled.
Assignee | ||
Comment 1•28 days ago
|
||
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ec6c742b5115
Disable ESLint rule jsdoc/require-param-description, enable jsdoc/require-param-type. r=frontend-codestyle-reviewers,Gijs
Comment 3•27 days ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 27 days ago
status-firefox137:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Comment 4•18 days ago
|
||
Thanks Mark for this tweak! I appreciate the time taken to consider the change and implementing it.
You need to log in
before you can comment on or make changes to this bug.
Description
•