adrianlee44 / atom-aligner

Easily align multi-line with support for different operators and custom configurations
https://atom.io/packages/aligner
MIT License
78 stars 3 forks source link

Feature Request: Align Javascript new `import ... from ...` syntax #58

Closed edmundhung closed 8 years ago

edmundhung commented 8 years ago

First of all, thanks for this great package!

As my usual practice, I would also align the new import ... from ... syntax. Here is an example:

import React, { Component } from 'react';
import App                  from 'app/containers/App';
import * as userActions     from 'app/actions/users';

I am not so sure if this is easily achievable. But it would be great if the package could support this either.

Or if you could point out where I should start with, I am willing to have a try on this. 👍 Thank you!

adrianlee44 commented 8 years ago

Are you using the JS language pack from Atom or a 3rd party one?

pahomov commented 8 years ago

i've tried every language-javascript package, imports didn`t aligned

adrianlee44 commented 8 years ago

I have published an add-on package for Javascript that better support new syntax.

You can find the package here, https://github.com/adrianlee44/atom-aligner-javascript or search for aligner-javascript on Atom