From 96ea08ffcdc5471aa90cb20ed5fd14771859ff62 Mon Sep 17 00:00:00 2001 From: Maxim Boichenko Date: Thu, 19 Sep 2019 07:03:49 +0300 Subject: [PATCH] docs: correct glob example in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1dadfc6a6..3bada20ea 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ Linter commands work on a subset of all staged files, defined by a _glob pattern * **`"!(*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` - * **`"foo/**/\*.js"`** will match all JS files inside the`/foo`directory, so`/foo/bar/test.js`but not`/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