Open jaketodaro opened 2 months ago
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
eslint-plugin-perfectionist
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.