Document usage of putout with a single rule or plugin
See original GitHub issueHow can I use putout to apply a single rule, such as remove-unused-variables
?
It would be helpful if there was a simple, documented approach for this. Ideally, it should be possible to do this with a single command and without creating a .putout.json file.
It seems that specifying a limited set of rules or plugins in the local .putout.json file does not by default disable rules or plugins specified in the default putout.json file. That is, it seems that the local plugins are added to the default, instead of replacing them. For the rules, it appears as though certain rules are on by default (even without appearing in the default .putout.json file) and I have not found a comprehensive list of all rules.
Using putout --disable-all source.js
seems to only disable rules which are currently violated in the source files being evaluated, not all rules comprehensively.
Further, the documentation seems to be somewhat redundantly duplicated between the top level readme https://github.com/coderaiser/putout/blob/master/README.md and the readme in the putout package https://github.com/coderaiser/putout/blob/master/packages/putout/README.md which I find confusing.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
putout example.js --no-config --plugins remove-unused-variables
works fine, thanksAdd ability to run desired plugins from command line without config in v9.13.0 🎉
Is it works for you?