New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce "Import Destructuring Spacing" in tslint #471
Comments
This was referenced May 28, 2017
@RingoKam you can do third checkbox VSC part lol 😬 |
@kirjs You did the first task right? |
I did |
Assigning to ringo kam for an advice on how this could be done with VS Code |
Added to contributing md, assume vs code does that |
Oh didn't see this until now lol |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
Right now there is no consistent way to handle spaces in destructured imports, this introduces some noise in commits as right now we have no spaces, but angular CLI as well as some formatters actually add spaces.
Also ts-lint only validates the case with spaces
Solution
Editor configuration
Intellij/Webstorm
Settings -> Code Style -> TypeScript -> Spaces Tab -> Check “ES6 import/export braces”
see also
mgechev/codelyzer#40
https://stackoverflow.com/questions/41447602/tslint-remove-missing-whitespace-rule-on-import
The text was updated successfully, but these errors were encountered: