Update README.md

Closest flag to this is the --ignore-path option in the Prettier docs, but it's different (path to a list of ignored directories). Doesn't seem necessary to include here as it already looks for the ./.prettierignore file
This commit is contained in:
Christopher Yin
2020-08-01 04:30:46 -04:00
committed by GitHub
parent 9bfa06256f
commit 3483b8efcd

View File

@@ -20,13 +20,13 @@ npm install -g prettier@latest
Prettify all web files in a project, recursively:
```bash
prettier --write '**/*{.md,.js,.html,.css}' --ignore ./dist
prettier --write '**/*{.md,.js,.html,.css}'
```
Tell Prettier which files to ignore every time
```bash
echo "./dist" >> .prettierignore
echo "dist/" >> .prettierignore
```
Tell Prettier which settings to use - do NOT use `package.json` when it's not