Imports sorting problem

Hello,

WebStorm auto-sorts an import so that it causes a TSLint error.

I'm on version 2021.1.1.

It's only this particular import, MAT_DIALOG_DATA, that I've noticed this happening. Is it possibly related to the casing, the all-caps? I don't see a UI option to address this.

I can fix it quickly with Alt-Enter, but it's still annoying when you're working on the file a bit; it keeps getting reintroduced every time I import something.

Thanks,

Charles

 

0
1 comment

Sort imported members (Settings | Editor | Code Style | TypeScript | Imports) is the only available option, it can't be customized

related tickets: https://youtrack.jetbrains.com/issue/WEB-40317, https://youtrack.jetbrains.com/issue/WEB-21182

0

Please sign in to leave a comment.