Make sure to use eslint --ext .js,.ts since by default eslint will only search for .js files. code example
Example: how to run eslint on the whole project
# cd to your root project folder
eslint "./**" --fix
# cd to your root project folder
eslint "./**" --fix