You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great if we had an option that regulates such behaviour & the ability to choose in what entities and how (for example, count a multiline comment as an inhibitor) it works
What rule do you want to change?
sort-object-types, sort-objects, sort-classes, ...?
Describe the problem
When some entity is being sorted, move along with it not only the first comment, but all of them before a blank line or a non-comment entity is found
Code example
(natural sorting is used)
Example 1:
to
Example 2:
to
Example 3:
to
Example 4
to
Additional comments
Really needed this functionality, so I have hastily created a workaround. Repository: https://github.com/datismoa/eslint-plugin-perfectionist. Does not break any of tests, tho
Would be great if we had an option that regulates such behaviour & the ability to choose in what entities and how (for example, count a multiline comment as an inhibitor) it works
Validations
The text was updated successfully, but these errors were encountered: