chore: enable eslint-plugin-jsdoc#400
Conversation
|
Why do we need |
I was hoping it would enforce the jsdoc on class (see #351 (comment)), but it does not. @brettz9 is it possible to do it? |
|
IMO we should stick to the default configuration as much as possible and only change the options we actually want to change or have to change to avoid lint errors during migration. Maybe with a hint, that its temporary. |
That's what I actually did. I only adjusted the default setup to reflect ours. The only reason why I put all the rules explicitly was for the future so we can change from |
How about https://github.com/gajus/eslint-plugin-jsdoc#require-jsdoc
|
Works great! Thanks for helping out. Please re-review. |
|
That's a very verbose configuration 😕 |
Feel free to submit issues or well-justified PRs to add to the configs (e.g., an identical warnings based config). Though I'm pretty occupied, it is in fact a good time for me to be revisiting our configs at least for decision-making. I'd like to actually switch the default type mode to typescript, for example, if there is community support in favor. |
I think it would be a good idea to have some opinionated configurations Beside that, I think recommended set rules to warn could be a good idea, because mostly JSDoc will not break the code anyways but just are stylistic suggestions |
And we get a warning in the github review too, so this might be sufficient.
AFAIK we don't write types there!? |
For
I think he or she is speaking to me about a preference for |
|
@pkuczynski Please change the configuration so that it requires a single newline between the params block and @examples to make it easier to visually distinguish. Or what do you think? |
Note for our |
Do you want me to add the
I think once we clear the current jsdoc, we should make those rules to fail the build, as warnings are only shown for reviewers and not for the PR author. It would save us a lot of time as reviewers if PR authors would get quick and solid feedback from the automation tools. Documentation is an important part of faker and I believe we should keep a strong guard on it. |
|
I tried, but I don't think that's possible, unfortunately? |
Right, not at this time. You can subscribe to gajus/eslint-plugin-jsdoc#782 . |
omg! I am blind, thx!
subscribed, thx! |
# Conflicts: # package.json # pnpm-lock.yaml
Codecov Report
@@ Coverage Diff @@
## main #400 +/- ##
=======================================
Coverage 94.24% 94.24%
=======================================
Files 1920 1920
Lines 173955 173955
Branches 108 108
=======================================
Hits 163942 163942
Misses 9905 9905
Partials 108 108 |
|
We can merge this now or can wait on the sort-tags rule |
I would probably merge it now, since we don't have an ETA for the rule to be added. |
Co-authored-by: Shinigami <chrissi92@hotmail.de>
I added all rules, as
recommendedset only turns them as warnings, while I guess in the future we would like to keep them as errors?