I tried adding the extensions to .gitignore but the result is as below:
.gitignore
The files are not completely hidden.
WebStorm 2017.3.3
If you don't need run Enable Typescript Compiler.
You can do this
Then
After that, just select you filter