amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
58 stars 24 forks source link

This extension prevents tslint autoFixOnSave from working #6

Closed chrismcleod closed 6 years ago

chrismcleod commented 6 years ago

to reproduce, install this extension and vscode-tslint

In settings enable sort imports on save for this extension and auto fix on save for tslint. TSlint will no longer auto fix on save.

chrismcleod commented 6 years ago

This is actually an issue with the tslint extension: https://github.com/Microsoft/vscode-tslint/issues/136

Also tslint provides similar functionality so I added this to my tslint.json

"ordered-imports": [
      true,
      {
        "grouped-imports": true,
        "import-sources-order": "lowercase-first",
        "named-imports-order": "lowercase-first",
        "module-source-path": "full"
      }
    ]
amatiasq commented 6 years ago

Thanks for reporting it also here! It's good for people who have the same issue 👍