So I am using eslint as a linter for my react project and I would like it to check all of my .js files.
.js
I am able to do this through the script:
<
eslint . --ext .js to lint files with the .js extension.
eslint . --ext .js
The . targets files in the current directory and all subdirectories.
.
To include other file extensions, eslint . --ext .js,.jsx or eslint . --ext .js --ext .jsx.
eslint . --ext .js,.jsx
eslint . --ext .js --ext .jsx
The eslint documentation covers this option.