Over the tree we have a few places where we use a couple of legacy
ESLint rules for ensuring the correct formatting of jsdoc comments. We
are now part way through transitioning the existing areas
<https://bugzilla.mozilla.org/show_bug.cgi?id=1510561> these across to
use rules from the supported eslint-plugin-jsdoc
<https://github.com/gajus/eslint-plugin-jsdoc> plugin.
I wanted to highlight a couple of items coming out of this transition:
* We want our jsdoc configuration to be consistent across the
mozilla-central tree. Therefore we have created two initial
configurations (these might get merged later, but for roll-out it is
easier to have them separate):
o valid-jsdoc
<https://searchfox.org/mozilla-central/source/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/valid-jsdoc.js>
- For checking that comments are valid with the jsdocs specification
o require-jsdoc
<https://searchfox.org/mozilla-central/source/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/require-jsdoc.js>
- For checking that various items of the jsdoc are included when
they should be
* The new configurations are slightly stricter that the older rules,
however, this should lead to comments that better matching jsdoc's spec.
Initially we are focussing on transitioning the existing areas away from
the legacy rules. Once that is complete, we'll think about how to roll
this out to new areas - if anyone is interested in enabling this for
their component, please let me know off-list or via #lint:mozilla.org on
Matrix.
Finally, a shout out to trickypr who has been doing all the work on this
transition.
Mark
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/1ef48a1f-f199-5009-e66f-9037fb28c4c9%40mozilla.com.