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
705 stars 40 forks source link

how to run just specific rules #203

Closed krzysztofpniak closed 6 months ago

krzysztofpniak commented 6 months ago

How can I run just a single rule from local rulesDir.

coderaiser commented 6 months ago

Try to use Ruler.

Also you can create different rules directories. Could you please provide more details about your use cases?

Usually plugin splitted into two parts: report and transform. if your rule already transformed code, it should not report, test noReportAfterTransform() can help you test for such cases.