Commit graph

6 commits

Author SHA1 Message Date
glacambre
54faf82428
scripts/{pretty,common}: Fix pretty failing on multiple files
When trying to run scripts/pretty with multiple ugly files staged, the
for loop would treat two space-separated file names as a single file
name. This prevented pretty from working on my machine.

I fixed this issue by making cachedJS() (renamed to cachedFiles since it
returns more than js files) return file names as a newline-separated
list and using IFS=$'\n' to split the filenames on this character.
2018-06-03 16:08:45 +02:00
Sumner Evans
de9d1f237e
Ran prettier on all CSS files 2018-05-24 08:53:51 -06:00
Sumner Evans
5164160375
#606 added .md files to list of files that need to be checked by prettier 2018-05-24 08:10:56 -06:00
Colin Caine
6e44bef6bd Teach lint,pretty to operate on staged copy
Gets a bit crazy.
2018-05-21 16:24:52 +01:00
Colin Caine
ad261b2e4f Fix {pretty,lint} when staging more than one file 2018-05-21 15:30:57 +01:00
Colin Caine
d28fc7f0f6 Add npm run {lint,pretty}
Lint is an alias to hooks/pre-commit. Code shared in scripts/common.
2018-05-18 16:03:11 +01:00