Skip to content

atom autocomplete-plus provider which allows automatic ES6 modules

License

Notifications You must be signed in to change notification settings

tomkis/js-autoimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-autoimport

This project is depracated, please use TypeScript or Flow with proper plugins instead.

Autocomplete+ provider which displays suggestions based on ES6 exports / imports.

js-autoimport

Installation

Installation is done via atom APM, you can install it easily in your Atom editor.

Usage

Consider you have export class FooBar anywhere in your project, just type either Fo or FB to get suggestion, the import statement should get automatically added to currently opened file after confirming.

Supported features

  • Named export
    • export function foo()
  • Default export
    • export function()
    • import FOO, {BAR} from './foo.js'
  • Entire file import
    • import './foo.js'
  • Alias imports
    • import { Foo as Bar } from './foo.js'
  • Namespace imports
    • import * as Foo from './foo.js'

Contribute

All issues and feature requests are much appreciated.

About

atom autocomplete-plus provider which allows automatic ES6 modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published