I tried adding the extensions to .gitignore but the result is as below:

The files are not completely hidden.
For me, using the Project panel, rather than the Project Files panel did the trick collapsing the *.js and .js.map files and hiding them beneath their corresponding *.ts file.

Note: This is only working when WebStorm's TypeScript Compiler is enabled. (see A_Singh's answer)

Project as suggested by Cibes

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With