Skip to content

Commit

Permalink
docs: fix root-dir-only example. (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
benblank authored and iiroj committed Nov 16, 2019
1 parent 596a360 commit 99c317a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -132,7 +132,7 @@ Linter commands work on a subset of all staged files, defined by a _glob pattern
- **`"*.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`
- If the glob pattern does contain a slash (`/`), it will match for paths as well:
- **`"/*.js"`** will match all JS files in the git repo root, so `/test.js` but not `/foo/bar/test.js`
- **`"./*.js"`** will match all JS files in the git repo root, so `/test.js` but not `/foo/bar/test.js`
- **`"foo/**/\*.js"`** will match all JS files inside the`/foo`directory, so`/foo/bar/test.js`but not`/test.js`

When matching, `lint-staged` will do the following
Expand Down

0 comments on commit 99c317a

Please sign in to comment.