Skip to content

Commit 62195dd

Browse files
authored
Add .sl to the list of silentlyIgnoredDirs (#14206)
In [Sapling SCM](https://sapling-scm.com/), `.sl/` is the folder where it stores its state, analogous to `.git/` in Git. It should be ignored in Prettier like the other SCM folders.
1 parent bf406f7 commit 62195dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/expand-patterns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function* expandPatterns(context) {
4646
*/
4747
async function* expandPatternsInternal(context) {
4848
// Ignores files in version control systems directories and `node_modules`
49-
const silentlyIgnoredDirs = [".git", ".svn", ".hg"];
49+
const silentlyIgnoredDirs = [".git", ".sl", ".svn", ".hg"];
5050
if (context.argv.withNodeModules !== true) {
5151
silentlyIgnoredDirs.push("node_modules");
5252
}

0 commit comments

Comments
 (0)