eslint-plugin-import-order-alphabetical

v0.0.1
eslint-plugin-import/order, but with alphabetical sorting

eslint-plugin-import-order-alphabetical

eslint-plugin-import/order, but with alphabetical sorting. Based on this PR. Because this one seems to be going nowhere and doesn't even have autofixing.

Note: the autofixing doesn't always work. But it's better than nothing! :)

PRs very welcome. And even better if we could get this back into eslint-plugin-import, of course.

Usage

$ npm install --save-dev eslint-plugin-import-order-alphabetical
or
$ yarn add --dev eslint-plugin-import-order-alphabetical

Then in your .eslintrc.js:

plugins: ["eslint-plugin-import-order-alphabetical"],
rules: {
  "import-order-alphabetical/order": "error",
},

For more detailed options, see eslint-plugin-import/order.

Note

❤️ Thank you to the people working on eslint-plugin-import and related projects. It's not easy to maintain open source and I really do appreciate the work that goes into it. ❤️

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 7/11/2018

Downloads

Maintainers