diff --git a/docs/ignore.md b/docs/ignore.md index 0b6bfd2a6..c28569e13 100644 --- a/docs/ignore.md +++ b/docs/ignore.md @@ -24,7 +24,7 @@ coverage It’s recommended to have a `.prettierignore` in your project! This way you can run `prettier --write .` to make sure that everything is formatted (without mangling files you don’t want, or choking on generated files). And – your editor will know which files _not_ to format! -By default prettier ignores files in version control systems directories (".git", ".svn" and ".hg") and `node_modules` (if [`--with-node-modules` CLI option](cli.md#--with-node-modules) not specified) +By default prettier ignores files in version control systems directories (".git", ".sl", ".svn" and ".hg") and `node_modules` (unless the [`--with-node-modules` CLI option](cli.md#--with-node-modules) is specified). Prettier will also follow rules specified in the ".gitignore" file if it exists in the same directory from which it is run. So by default it will be diff --git a/docs/install.md b/docs/install.md index ed4529c3d..9a50db4c6 100644 --- a/docs/install.md +++ b/docs/install.md @@ -47,7 +47,7 @@ build coverage ``` -> Tip! Base your .prettierignore on .gitignore and .eslintignore (if you have one). +> Tip! Prettier will follow rules specified in .gitignore if it exists in the same directory from which it is run. You can also base your .prettierignore on .eslintignore (if you have one). > Another tip! If your project isn’t ready to format, say, HTML files yet, add `*.html`.