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 "**/*.js" to run on all js files in all the folders recursively (in the current folder)
eslint "**/*.js"
You can also do: AnyFolder/**/*.js
AnyFolder/**/*.js
And to ignore a folder: eslint "**/*.js" --ignore-pattern node_modules/
eslint "**/*.js" --ignore-pattern node_modules/
Know more at eslint/command-line-interface