mskelton / eslint-plugin-sort

Auto-fixable sort rules for ESLint.
https://www.npmjs.com/package/eslint-plugin-sort
ISC License
24 stars 1 forks source link

sort/string-unions gives false failure. --fix is not able to fix #59

Closed slalomzacharyd closed 4 months ago

slalomzacharyd commented 6 months ago

For the string,

type ReferrerPolicy =
  "no-referrer-when-downgrade" | "no-referrer" | "origin-when-cross-origin" | "origin" | "same-origin" | "strict-origin-when-cross-origin" | "strict-origin" | "unsafe-url";

eslint outputs the error warning| sort/string-unions: String unions should be sorted alphabetically..

My configuration is "sort/string-unions": "warn". eslint fix is unable to fix the issue.

Screenshot 2023-12-11 at 10 38 15 Screenshot 2023-12-11 at 10 41 31
mskelton commented 6 months ago

I'm unable to reproduce this. Can you make a codesandbox or reproduction repo?

slalomzacharyd commented 6 months ago

Sure

mskelton commented 4 months ago

Closing due to lack of response