This post works for linting all .js
files in a project.
How do I lint all .jsx
files in addition to all .js
files?
I've gotten this to work:
"lint": "./node_modules/.bin/eslint \"./**/*.js\" \"./**/*.jsx\""
However, I think that there is a more succint way to match both .js
and .jsx
file extensions.
You could also try the following which is working fine on my machine:
"lint": "eslint \"**/*.{js,jsx}\""
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With