azat-io / eslint-plugin-perfectionist

🦄 ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
https://eslint-plugin-perfectionist.azat.io
MIT License
1.66k stars 30 forks source link

Bug: does not sort in-line typings #64

Closed askew07 closed 9 months ago

askew07 commented 9 months ago

Describe the bug

When sorting objects, seems like in-line TypeScript parameter types are not being sorted as expected.

Code example

This

image

Becomes this:

image

The arguments are sorted, but the in-line types are not.

ESLint version

v8.45.0

ESLint Plugin Perfectionist version

v.2.0.0

Additional comments

No response

Validations

azat-io commented 9 months ago

I'm having trouble reproducing the problem. Could you show me your ESLint config? Are you using sort-object-types rule?

askew07 commented 9 months ago

@azat-io Apologies for the delay. I tried this once more with latest of your plugin (2.1.0) and... I am no longer reproducing the issue. Now sure when this was fixed, but I could easily replicate the issue in previous versions.

Anyway, closing this, as this is no longer an issue. Thanks!