Skip to content

Commit

Permalink
docs: fix ignore example glob
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj authored and okonet committed Jul 3, 2019
1 parent 0dd0c94 commit 28da59a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -194,14 +194,14 @@ If for some reason you want to ignore files from the glob match, you can use `mi
const micromatch = require('micromatch')
module.exports = {
'*.js': files => {
// from `files` filter those _NOT_ matching `*.test.js`
const match = micromatch.not(files, '*.test.js')
// from `files` filter those _NOT_ matching `*test.js`
const match = micromatch.not(files, '*test.js')
return match.map(file => `eslint ${file}`)
}
}
```

Please note that for most cases, globs can achieve the same effect. For the above example, a matching glob would be `!(*.test).js`.
Please note that for most cases, globs can achieve the same effect. For the above example, a matching glob would be `!(*test).js`.

### Example: Use relative paths for commands

Expand Down

0 comments on commit 28da59a

Please sign in to comment.