js-autoimport icon indicating copy to clipboard operation
js-autoimport copied to clipboard

Auto import adds an extra space after the name and before from.

Open chetankothari opened this issue 9 years ago • 2 comments

e.g.

import React  from 'react';

import Component  from './Component.jsx';

export default React.createClass({
  render() {
    return <Component />
  }
});

File Component.jsx

import React from 'react';

export default React.createClass({});

If you notice there is an extra space between React and from in the first line of import. This happens to all the imports.

chetankothari avatar Dec 23 '15 17:12 chetankothari

happens only on no-named imports, very annoying

lironess avatar Jun 05 '16 08:06 lironess

https://github.com/tomkis1/js-autoimport/pull/11 should fix this

tungv avatar Sep 23 '16 15:09 tungv