DEV Community

Discussion on: Linting Your React+Typescript Project with ESLint and Prettier!

Collapse
 
bartekpacia profile image
Bartek Pacia

Great article, however in my case it didn't work. Running ./node_modules/.bin/eslint . just didn't output anything. After a few hours of cursing the universe, I found a solution. ESLint works out-of-the-box only for .js, so I had to tell it to lint .ts as well. It can be done by adding --ext ts.

./node_modules/.bin/eslint --ext ts .

Hope it helps somebody!