order-imports
v1.5.0
Published
This script orders the imports of javascript files
Downloads
4
Readme
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": "^@"
}
]
}