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

ignore test files #199

Closed phun-ky closed 7 months ago

phun-ky commented 7 months ago

How do I ignore test files? From the documentation, and testing my self, only relative directories are ignored, with this setup, not globs:

{
  "ignore": [
      "src/test/",
      "**/__tests_/**"
  ]
}
coderaiser commented 7 months ago

This should be enough:

{
  "ignore": [
      "**/src/test",
      "**/__tests_"
  ]
}
phun-ky commented 7 months ago

@coderaiser tried that one just now, did not work :/

coderaiser commented 7 months ago

Create example repository, so I can check:

phun-ky commented 7 months ago

https://github.com/phun-ky/repro-putout-config, using latest putout ^35.1.0, isnt config called automatically?

in terminal:

$ npx putout src
coderaiser commented 7 months ago

Is it works for you?