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)

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.

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
Status: NEW → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch

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.

Attachment

General

Created:
Updated:
Size: