From 1e15fd9345c2bc27c22065a6ad582c88553547bf Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Thu, 19 Jan 2023 11:10:22 -0800 Subject: [PATCH] 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. --- src/cli/expand-patterns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/expand-patterns.js b/src/cli/expand-patterns.js index c097b10d3870..acdf9f575301 100644 --- a/src/cli/expand-patterns.js +++ b/src/cli/expand-patterns.js @@ -46,7 +46,7 @@ async function* expandPatterns(context) { */ async function* expandPatternsInternal(context) { // Ignores files in version control systems directories and `node_modules` - const silentlyIgnoredDirs = [".git", ".svn", ".hg"]; + const silentlyIgnoredDirs = [".git", ".sl", ".svn", ".hg"]; if (context.argv.withNodeModules !== true) { silentlyIgnoredDirs.push("node_modules"); }