Allow purty to format more than one file
Issue
purty
can format a single file or a directory.
Usage: purty format FILE [--write]
Format a PureScript file
Available options:
FILE PureScript file to format or `-` for STDIN
--write Format file in-place
-h,--help Show this help text
It can format a list of files e.g. purty format A.purs B.purs
Examples
- Formatting more than one specific file is not possible
- A (npm) script that uses
purty format --write **/*.purs
won't work -
lint-staged
will automatically append the list of changed files. A workaround is to ignore the list and format a folder
In my opinion it would be neat, if purty
could format multiple files out of the box. If this is already possible, please let me know :)