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

`src/**/*.js` doesn't match all the .js files in src folder #723

Closed
CodinCat opened this issue Dec 16, 2016 · 1 comment

Comments

@CodinCat
Copy link
Contributor

commented Dec 16, 2016

#macOS Sierra
node.js v6.9.1
standard v8.6.0

Since I only want to lint the src folder, I have the follow npm script, which I expect should match all the files under src
"lint": "standard src/**/*.js --fix"

but I found that this command doesn't match files which are more than 2 depth.

- src
    - dir1
        - dir2
            - file.js  <-- this file will not be handled by standard
        - foo.js
        - bar.js
    - index.js

Not sure if is a bug, or it's an expected behavior and I'm doing something wrong,
thanks.

@CodinCat

This comment has been minimized.

Copy link
Contributor Author

commented Dec 16, 2016

Ok I got it

I should quote the path in npm script

this will work
"lint": "standard 'src/**/*.js' --fix"

@CodinCat CodinCat closed this Dec 16, 2016

@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.
1 participant
You can’t perform that action at this time.