Don’t expand globs via symbolic links (#14627)
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
1 parent
42589a13c1
commit
dcc081db0d
6 files changed
+200
-3
No files matched your search
@@ -45,6 +45,8 @@ Given a list of paths/patterns, the Prettier CLI first treats every entry in it
|
||||
|
||||
Prettier CLI will ignore files located in `node_modules` directory. To opt out from this behavior, use `--with-node-modules` flag.
|
||||
|
||||
Prettier CLI will not follow symbolic links when expanding arguments.
|
||||
|
||||
To escape special characters in globs, one of the two escaping syntaxes can be used: `prettier "\[my-dir]/*.js"` or `prettier "[[]my-dir]/*.js"`. Both match all JS files in a directory named `[my-dir]`, however the latter syntax is preferable as the former doesn’t work on Windows, where backslashes are treated as path separators.
|
||||
|
||||
## `--check`
|
||||
|
||||
Reference in new issue
Block a user