Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to check all subdirectories #769

Closed
matart15 opened this issue Feb 1, 2017 · 2 comments

Comments

@matart15
Copy link

commented Feb 1, 2017

I have following structure

src/app.js
src/utils/a.js
src/utils/b.js
src/component/post/a.js
src/component/post/b.js
src/component/user/a.js
src/component/user/b.js
src/component/user/posts/a.js
src/component/user/posts/b.js
...

standard --fix src/**/*.js does not lint src/component/user/posts/a.js

currently I am using

standard --fix src/**/*.js src/**/**/*.js src/**/**/**/*.js 

is there any other way?

@matart15

This comment has been minimized.

Copy link
Author

commented Feb 1, 2017

@feross

This comment has been minimized.

Copy link
Member

commented Feb 1, 2017

This is happening because your shell is expanding the ** in a different way than standard does: only one level deep. Put the glob pattern in quotes and then your shell won't touch it.

standard --fix "src/**/*.js"

@feross feross closed this Feb 1, 2017

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.