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.62k stars 28 forks source link

Bug: [perfectionist/sort-objects] unexpected behavior on Windows #105

Open gustaveWPM opened 3 months ago

gustaveWPM commented 3 months ago

Describe the bug

The perfectionist/sort-objects rule is glitched on Windows.

Code example

Failing workflow : https://github.com/Tirraa/dashboard_rtm/actions/runs/7926565974

Failing workflow related commit : https://github.com/Tirraa/dashboard_rtm/commit/d2f313191a09cebf0b73a671941528084e95942c


Working workflow : https://github.com/Tirraa/dashboard_rtm/actions/runs/7926583540

Working workflow related commit : https://github.com/Tirraa/dashboard_rtm/commit/1123819379709d2a36fa4f98eea0cd7d5371253e

ESLint version

v8.47.0 (also tested with v8.56.0)

ESLint Plugin Perfectionist version

v2.5.0

Additional comments

No response

Validations

azat-io commented 3 months ago

Curious. An unusual problem. Thanks, I'll look into your issue.

gustaveWPM commented 3 months ago

Curious. An unusual problem. Thanks, I'll look into your issue.

Thank you for your fast answer!

Yes, I find it very strange too. I've triggered this bug a few times and hesitated to create this issue...