Closed Bug 1995811 Opened 11 months ago Closed 11 months ago

Enable ESLint rule jsdoc/multiline-blocks

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

task

Tracking

(firefox146 fixed)

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The jsdoc/multiline-blocks rule can control if jsdoc comments are expressed as multi-line or single line. However, in the default mode it allows both, but has additional checks for ensuring that comments are not on the start or end lines of a block (noZeroLineText / noFinalLineText).

I'm proposing that we enable this, so that we have more consistency in our jsdoc comments. I think this also catches (or at least helps) some instances of jsdoc where it is hard for the jsdoc/no-multi-asterisks to auto-fix correctly.

Blocks: 1596191
Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/32783c46e8ab https://hg.mozilla.org/integration/autoland/rev/475bcfbc84da Enable ESLint rule jsdoc/multiline-blocks. r=frontend-codestyle-reviewers,perftest-reviewers,sparky,nchevobbe,whimboo,Gijs
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
See Also: → 1996238
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: