react-workspaces-playground icon indicating copy to clipboard operation
react-workspaces-playground copied to clipboard

Lint command doesn't work with nested folders

Open MikeSuiter opened this issue 5 years ago • 1 comments

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:

"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.

MikeSuiter avatar Feb 05 '20 16:02 MikeSuiter

Thanks @MikeSuiter ! Can you submit PR?

F1LT3R avatar Apr 29 '20 00:04 F1LT3R