1.5.0 • Published 5 years ago

order-imports v1.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

order-imports

This node script orders the imports of your ES6 Javascript files.

Example invocation:

node order-imports src -c exampleConfig.json

Example config:

{
  "files": ".*.js",
  "order": [
    {
      "regex": "react"
    },
    {
      "regex": "react-native"
    },
    {
      "regex": "react-redux"
    },
    {
      "regex": "styled-components"
    },
    {
      "regex": "^[^\\.@]"
    },
    {
      "regex": "^@"
    }
  ]
}
1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago