-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Motivation
- I'm moving some JS code with types described as JSDoc into TS
All those param types are being removed and become empty
Making all the functions to have descriptions is not planned.
Thus I need a way to cleanup empty code blocks. - I'm working on https://github.com/Shinigami92/eslint-define-config
Code generation sometimes causes empty JSDoc blocks to appear here and there.
Some non-needed blocks like@minItemscan also appear.
I am looking for an easy and straigntforward way to remove the blocks I don't need
First step would be removing unwanted tags by autofixer
Second step would be removing blocks which became empty by autofixer
Current behavior
The documentation is too long to read it completely
Nothing searchable there clearly states that it can be used to remove lines or blocks, other then builtin autofixers
Desired behavior
- A rule that says that it bans empty blocks in its name
- A rule that says that it bans certain tags in its name
Alternatives considered
I have spend an hour reading documentation, understood nothing on the case