eclint icon indicating copy to clipboard operation
eclint copied to clipboard

Glob pattern match does't work as expected

Open japboy opened this issue 7 years ago • 3 comments
trafficstars

This pattern below actually checks under frontend/icon/**/*. Is this how eclint works?

yarn eclint check "frontend/**/*" "[!]frontend/icon/**/*"

japboy avatar Mar 05 '18 06:03 japboy

how about try this: yarn eclint check "frontend/**/*" "!frontend/icon/**/*"?

gucong3000 avatar Mar 05 '18 23:03 gucong3000

wow it works. thanks!

So README's description is incorrect...? or does this depend on the environment...?

Unfortunately, in bash, you can't add a negative glob with "!foo.js". Instead, you can put square brackets around the ! and eclint will take care of it. For example, "[!]foo.js".

japboy avatar Mar 06 '18 03:03 japboy

So README's description is incorrect...?

I'm not sure, because I work under Windows 10.

gucong3000 avatar Mar 06 '18 04:03 gucong3000