microsoft / vscode-jshint

VSCode extension to integrate jshint into VSCode
https://marketplace.visualstudio.com/items?itemName=dbaeumer.jshint
MIT License
72 stars 48 forks source link

Support different file extensions #10

Closed janpieterz closed 8 years ago

janpieterz commented 8 years ago

Currently the extension only works on js files and I don't see an option nor get it enabled for jsx files. Since jshint doesn't support file extensions this out of the box (like jscs does), extensions on other editors have implemented this functionality themselves.

It would be great if the configuration could support setting custom file extensions to enable working in .ts, .tsx, .jsx and other possible extensions out there.

I'd propose a setting similar to jscs' own setting:

"jshint.enable": true,
"jshint.fileExtensions": ["js", "jsx", "ts", "tsx"]