Skip to content

Commit

Permalink
Add .sl to the list of silentlyIgnoredDirs (#14206)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bolinfest committed Jan 19, 2023
1 parent bf406f7 commit 62195dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/expand-patterns.js
Expand Up @@ -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");
}
Expand Down

0 comments on commit 62195dd

Please sign in to comment.