Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract imports from variable declarations #85

Open
eventualbuddha opened this issue Jan 11, 2016 · 0 comments
Open

Extract imports from variable declarations #85

eventualbuddha opened this issue Jan 11, 2016 · 0 comments

Comments

@eventualbuddha
Copy link
Contributor

For example:

var d        = require('d')
  , callable = require('es5-ext/object/valid-callable')

  , apply = Function.prototype.apply, call = Function.prototype.call;

We should remove them from the variable declaration, and remove the whole variable declaration if it wouldn't have any declarators:

import d from 'd';
import callable from 'es5-ext/object/valid-callable';
var apply = Function.prototype.apply, call = Function.prototype.call;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant