import-sort-style-alias
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

import-sort-style-alias

sort webpack resolve.alias separately first by the order defined in the array, then by member name

npm i import-sort-style-alias --save-dev

package.json

  "importSort": {
    ".js, .jsx, .es6, .es": {
      "parser": "babylon",
      "style": "alias",
      "custom": {
        "alias": ["components", "modules"]
      }
    },
    ".ts, .tsx": {
      "parser": "typescript",
      "style": "alias",
      "custom": {
        "alias": ["components", "modules"]
      }
    }

Readme

Keywords

none

Package Sidebar

Install

npm i import-sort-style-alias

Weekly Downloads

2

Version

1.2.0

License

MIT

Last publish

Collaborators

  • ruanyu1