ESLint and .ts Typescript files

I would like to be able to have ESLint process .ts files as .js.  I had hoped to use ESLint Other Options (i.e. --ext .ts. .) but that does not seem to work.

I was able to get this to work in Visual Studio Code by simple adding the 'TypeScript' to 'eslint.validate'.

To be clear, I am not looking for ESLint to handleTypeScript specific notation etc.  I am aware there are plugins for this.  Rather, I simply want ESLint to process .ts the same way it processes .js.

(In case your wondering why, I want the benefit of using TypeScript in place of Babel for ES6/ES7, as well as, the inferred type assistance.  I intend to use comments to add type definitions if I feel it is necessary.)

 

 

 

 

 

32 comments
Comment actions Permalink

wow I see I am on an old version, I had toolbox and presumed it was auto updating me.  I have now been able to change eslint.additional.file.extensions and all is ok.

1

Please sign in to leave a comment.