eslint-plugin-sort
eslint-plugin-sort copied to clipboard
Support computed properties for sort/object-properties and sort/type-properties
Would it be possible to support sorting computed properties in objects and types? I would expect computed properties to be sorted not by their computed value, but just alphabetically by the code in the computed expression.
enum SomeEnum {
foo = 'foo',
bar = 'bar'
}
const myMap: Record<SomeEnum, string> = {
// sort these keys?
[SomeEnum.foo]: 'foo thing',
[SomeEnum.bar]: 'bar thing'
}
I'm waffling on this TBH. I can see the value, just not sure if I like it or not.
Your call. I switched to eslint-plugin-perfectionist
for this feature
Going to close this as a won't do