Open Bug 1319786 Opened 9 years ago Updated 3 months ago

Add eslint for JSDocs in DevTools

Categories

(DevTools :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: gl, Unassigned)

References

Details

The purpose of this bug is to look into adding eslint rules for reinforcing consistent JSDocs.
Thanks for filing. I'd very much like us to have this in place. When we put eslint in place, I tried to enable the jsdoc rule, but it was failing then. My comment from back then in https://old.etherpad-mozilla.org/eslint-devtools : valid-jsdoc http://eslint.org/docs/rules/valid-jsdoc Ensure JSDoc comments are valid (off by default) requireReturn: false, requireParamDescription: false, requireReturnDescription: false The rule has a known bug that makes the eslint command fail on some of our files: https://github.com/eslint/eslint/issues/2270 Fails with browser/devtools/webconsole/console-output.js Things might have changed since, so it's worth trying again. I'm just worried about the amount of changes enabling this rule will require, especially on files that are not currently excluded in .eslintignore.
Severity: normal → enhancement
Priority: -- → P3
Product: Firefox → DevTools

Adding dependency on bug 1510561 - as jsdoc validation got moved out of ESLint into a separate plug-in, we'd want to have that bug install the module & set up standard settings before enabling here.

Depends on: 1510561
Severity: normal → S3

There's now two roll-out sections where devtools could be removed for enabling our jsdoc collections of rules: valid-jsdoc and require-jsdoc.

As these are exclusions, they could also be altered to progressively exclude less code & hence enable a gradual roll-out.

Summary: Adding eslint for JSDocs in DevTools → Add eslint for JSDocs in DevTools
You need to log in before you can comment on or make changes to this bug.