Skip to content

Commit

Permalink
docs: Add more glob examples (#1977)
Browse files Browse the repository at this point in the history
* docs: Add more glob examples

* Update globs.md
  • Loading branch information
Jason3S committed Nov 9, 2021
1 parent e18dd66 commit 5820d31
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/docs/globs.md
Expand Up @@ -26,12 +26,15 @@ Strict mode is used to explicitly select files to be checked. It gives more nuan

Examples:

| Glob | Meaning |
| ------------------- | ----------------------------------------------------------------------------------------- |
| `*.md` | Only check the Markdown files in the current directory. It will not scan subdirectories. |
| `**/*.md` | Scan all directories (except _hidden_ ones starting with `.`) looking for markdown files. |
| `**/{*,.*}/**/*.md` | Scan all directories include _hidden_ ones looking for markdown files. |
| `src/**` | Scan the `src` directory looking for all _non-hidden_ files. |
| Glob | Meaning |
| ------------------------------ | -------------------------------------------------------------------------------------------------------- |
| `*.md` | Only check the Markdown files in the current directory. It will not scan subdirectories. |
| `*.{md,js}` or `{*.md,*.js}` | Only check the Markdown or JavaScript files in the current directory. It will not scan subdirectories. |
| `**/*.md` | Scan all directories (except _hidden_ ones starting with `.`) looking for markdown files. |
| `**/{*,.*}/**/*.md` | Scan all directories including a _hidden_ one looking for markdown files. Does not match `*.md` in root. |
| `src/**` | Scan the `src` directory looking for all _non-hidden_ files. |
| `**/{*,.*,.*/**/{*,.*,.*/**}}` | Scan for all files with up to two _hidden_ directories deep. |
| `**/.*` | Scan for only _hidden_ files. |

## Mode - Loose

Expand Down

0 comments on commit 5820d31

Please sign in to comment.