pmneo / ts-importer

MIT License
73 stars 8 forks source link

Organizing imports #38

Open vtulin opened 7 years ago

vtulin commented 7 years ago

Organizing imports would be a perfect feature. Please take a look how it's done in Typescript Hero https://github.com/buehler/typescript-hero

In short. The sequence of the groups located in settings to workspace, it uses regular expressions to identify the group.

[
    "Plains",
    "/@angular/",
    {
        "identifier": "/Foo[1-9]Bar/",
        "order": "desc"
    },
    "Workspace",
    {
        "identifier": "Remaining",
        "order": "desc"
    }
]

Also if you will do some kind of imports organization, please provide a hot key to force organizing and an option for settings to do it automatically on save.

The reason why I'm using your extension not a TsHero is your extension uses paths from tsconfig, which is more important for me, and imho the killing feature!:)

Thank you.

pmneo commented 6 years ago

Why not using TS-Lint?