Skip to content

Commit

Permalink
docs: how to ignore files using negative patterns (#10400)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Feb 24, 2021
1 parent 5682d2f commit 285c15e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/ignore.md
Expand Up @@ -159,3 +159,13 @@ hello: world
{{/my-crazy-component}}
</div>
```

## Command Line File Patterns

For one-off commands, when you want to exclude some files without adding them to `.prettierignore`, negative patterns can come in handy:

```bash
prettier --write . '!**/*.{js,jsx,vue}'
```

See [fast-glob](https://prettier.io/docs/en/cli.html#file-patterns) to learn more about advanced glob syntax.

0 comments on commit 285c15e

Please sign in to comment.