Bug: Fix for sort-decorators
moves decorators above JSDoc comments
#399
Labels
bug
Something isn't working
sort-decorators
moves decorators above JSDoc comments
#399
Describe the bug
The fix for the
sort-decorators
rule will move a decorator above the JSDoc comment.It seems as though the JSDoc comment is being kept with the directive that immediately follows it, which makes sense for normal comments, but I would expect JSDoc comments to stay before all directives.
ESLint config:
Original code:
Actual fixed code:
Expected fixed code:
Code example
ESLint version
v9.15.0
ESLint Plugin Perfectionist version
v4.1.2
Additional comments
No response
Validations
The text was updated successfully, but these errors were encountered: