autoimport

Import unresolved identifiers using flow

hendrikniemann

3,942

0

0.3.0

MIT

GitHub

Atom auto import plugin

Introduction

I love the new ES2015 module system and so do you. But writing imports at the beginning of your file is tiring. You have to jump around in your code and most of the time the import statement is very trivial. Why is there no editor plugin that writes these imports for me? Look no further, powered by flow this plugin should be able to write 98% of the imports for you!

Requirements

This plugin uses flow to find unresolved identifiers in your code and add them to the import section of your file. This project is in an early stage and does not offer a lot of configuration. Instead it assumes a standard JavaScript project setup.

Checklist

This repository is setup in that manner and can be used as a reference.

Installation and usage

Install the autoimport package using the settings or use the cli:

apm install autoimport

To execute the autoimport:import command use CMD CTRL o on Mac or execute the command manually.