leo-buneev / eslint-plugin-sort-keys-fix

Fork of https://eslint.org/docs/rules/sort-keys that allows automatic fixing
95 stars 22 forks source link

Missing option to sort multiline keys last #45

Open DonnyVerduijn opened 2 months ago

DonnyVerduijn commented 2 months ago

In order to improve readability, it would be great to have the ability to have multiline keys after single line keys, as in: we have two groups that apply the other rules. One group is single line, one group is multiline.

We could draw some inspiration from eslint-plugin-react, which has a rule to sort props and supports this specific behavior. https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md#multiline