Format any .*ignore file with ease!
Run prettignore --help for details
Make a .prettignorerc.json file in the root of your project.
The config should have the following structure:
interface PrettignoreConfig {
files: string[];
endOfLine?: 'lf' | 'crlf' | 'cr' | 'auto';
}formatLine(line);formatFile(content, { endOfLine: 'lf' });#just a nice comment!Becomes:
# just a nice comment! dist
build
Becomes:
dist
builddist
buildBecomes:
dist
builddist
.ignored*
#comment
# another comment
build/
.secretfile.json
Becomes:
dist
.ignored*
# comment
# another
build/
.secretfile.json