Skip to content

thongdong7/autoimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Import

Auto Import undefined identifiers for ES6 & Flowtype

Build Status

Screenshot

Features

  • 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": ""
}

Usage

TBD

TODO

  • 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

About

Auto Import undefined identifiers for ES6 & Flowtype

Resources

Stars

Watchers

Forks

Packages

No packages published