--ext allows you to use custom javascript extensions, you cannot force ESLint to work in languages ββother than JavaScript, passing it another extension.
You can use typescript-eslint-parser to enable ESLint for Typescript - it allows you to build a syntax tree from Typescript code that can be passed to ESLint for casting.
But I would suggest using Typescript linters to test Typescript code. For example, you can try TSLint .
Update : from 2017.1.3 WebStorm supports ESLint + typescript -eslint-parser; you just need to install the typescript plugin and typescript-eslint-parser and modify the ESLint configuration accordingly:
"parser": "typescript-eslint-parser", "plugins": ["typescript"]
source share