Open MikeSuiter opened 4 years ago
I'm using the same lint command and found it out doesn't work on nested folders on macOS. For example src/components/Component.js gets linted but src/components/field/Component.js doesn't. After a lot of pain tracking down I changed this:
src/components/Component.js
src/components/field/Component.js
"lint": "eslint ./src/**/*.js --max-warnings=0 --format=codeframe"
to this:
"lint": "eslint \"./src/**/*.js\" --max-warnings=0 --format=codeframe"
I tested on both macOS and Windows and both seem happy.
Thanks @MikeSuiter ! Can you submit PR?
I'm using the same lint command and found it out doesn't work on nested folders on macOS. For example
src/components/Component.js
gets linted butsrc/components/field/Component.js
doesn't. After a lot of pain tracking down I changed this:"lint": "eslint ./src/**/*.js --max-warnings=0 --format=codeframe"
to this:
"lint": "eslint \"./src/**/*.js\" --max-warnings=0 --format=codeframe"
I tested on both macOS and Windows and both seem happy.