eslint-plugin-import-order-alphabetical

1.0.1 • Public • Published

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. ❤️

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i eslint-plugin-import-order-alphabetical

    Weekly Downloads

    2,417

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    21 kB

    Total Files

    7

    Last publish

    Collaborators

    • janpaul123