coderaiser / putout

🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement 💪 with built-in support for js, jsx, typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏
https://putout.cloudcmd.io/
MIT License
698 stars 40 forks source link

putout ignores camelCased paths #204

Closed krzysztofpniak closed 4 months ago

krzysztofpniak commented 4 months ago

Given following structure:

-package.json
+camelCaseDir
  -someFile.js

and: npx putout --fix --rulesdir ./putout ./camelCaseDir/**/*.js

putout ignores someFile.js

it works when I run: npx putout --fix --rulesdir ./putout ./**/*.js or npx putout --fix --rulesdir ./putout ./camelcasedir/**/*.js which is not correct on unix filesystems

coderaiser commented 4 months ago

I cannot reproduce this:

image

Try to use quotes:

npx putout --fix --rulesdir ./putout './camelCaseDir/**/*.js'