Open Bug 1319786 Opened 8 years ago Updated 2 years ago

Adding 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
You need to log in before you can comment on or make changes to this bug.