eslint-plugin-sort-destructure-keys
eslint-plugin-sort-destructure-keys copied to clipboard
ESLint plugin to check if keys should be sorted in an object pattern.
It would be nice if I could add just one line to my ESLint config for the plugin to work: ```js import sortDestructureKeys from 'eslint-plugin-sort-destructure-keys'; export default [ sortDestructureKeys.configs.recommended, //...
Autofix does not change the location of comments if the keys are on multiple lines, because of this they become incorrect. See https://eslint-online-playground.netlify.app/#eNqFkctOwzAQRX9l5E02eaDuCGLXHZ+AQbKSSWTq2JYfqFWVf2f8QBVSgY1jZ+bcez2+Mu+mAc9iswr7D89GNhntAywuyuDhGa4gLNVGCC5iC8YJvdJpEcoj7E9cc12IK9dQyy0MQ92mn1mg5XonuaJLGGsZeiV16Alf5FrM5WaNC+BpOaInyylEhy948USaDZrCdFbFVeou9XXzrbE7UWeTQ+E5K824iKgCvKYgOSJAgf34fQZo7guN94LQRRKy16+LCv+XGn4zaNA545ofoml9KyOyYjqJNb2M0TSe7MJZuFjkbKTdZmby5yxznM34eUSLekY9SfSppwbjddoFe3/sD4f+oXK36p9zrShxicxB6U3Z/gXhZ8We (click Apply Fix, after that the comment...
added support to sort ALL CAPS keys before any other type of key. ISSUE: https://github.com/mthadley/eslint-plugin-sort-destructure-keys/issues/300
Please add to [README](https://github.com/mthadley/eslint-plugin-sort-destructure-keys/blob/master/README.md) information about how to use your plugin in flat config. Now it has information only about usage with eslintrc which is deprecated in ESLint 9.