Import-JS Atom plugin
This is the Atom plugin for Import-JS.
Installing
-
Install the plugin via Atom's package manager.
-
Install the import_js gem
gem install import_js -
Install eslint
npm install -g eslint -
Open the root of your project as a folder (File -> Add Project Folder…)
-
Import a file!
Whenever you have undefined variables, open the Command Palette (
CTRL+SHIFT+P
/CMD+SHIFT+P
) and select "Import Js: Fix all imports", or "ImportJS: Import word under cursor".