Commit aededce
authored
Ignore symlinks in style checks (#97)
Our style checks were adding problems when adding symlinks to directories:
* `prettier` will error out if told to format a directory that doesn't contain any files it can format.
* `git` will report new symlinks to directories as new files.
* `prettier` will interpret symlinks to directories as directories.
* Therefore, if adding a symlink to a directory that doesn't have any `prettier`-relevant files, `prettier` will error out.
We avoid this (and any other symlink confusion) by excluding symlinks from style checks. By definition they'll point to a real file or directory that will be getting formatted anyway.1 parent c9cb16a commit aededce
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments