Auto Import undefined identifiers for ES6 & Flowtype
- Auto Import undefined identifiers from installed dependencies and source code
- Support ES module import and Flow import
- Sort imports
- Disable autoimport for file:
// autoimport-disable
- Auto remove unused imports
Sample config file (autoimport.json
)
{
"packages": {
"react": {
"main": "React",
"others": ["Component"]
},
"react-dom": {
"main": "ReactDOM"
}
},
"ignore": ["window", "document", "JSON"],
"rootPath": ""
}
TBD
- Don't remove first comment when remove unused import (bug)
- Handle updating export
- Support ignore folders (like
build
folder created by CRA) - Add test for VSCode
- Add travis test for VSCode