Skip to content

Commit

Permalink
docs: fix typo (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
ledenis committed May 21, 2024
1 parent 86fba6f commit 72483cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Or, if necessary, you can limit the concurrency using `--concurrent <number>` or

Linter commands work on a subset of all staged files, defined by a _glob pattern_. lint-staged uses [micromatch](https://github.com/micromatch/micromatch) for matching files with the following rules:

- If the glob pattern contains no slashes (`/`), micromatch's `matchBase` option will enabled, so globs match a file's basename regardless of directory:
- If the glob pattern contains no slashes (`/`), micromatch's `matchBase` option will be enabled, so globs match a file's basename regardless of directory:
- `"*.js"` will match all JS files, like `/test.js` and `/foo/bar/test.js`
- `"!(*test).js"` will match all JS files, except those ending in `test.js`, so `foo.js` but not `foo.test.js`
- `"!(*.css|*.js)"` will match all files except CSS and JS files
Expand Down

0 comments on commit 72483cb

Please sign in to comment.