Skip to content

Commit

Permalink
docs: fix & enhance "Use your own globs" example (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
SachinShekhar authored Sep 14, 2020
1 parent d404d7d commit 643038d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ const micromatch = require('micromatch')
module.exports = {
'*': (allFiles) => {
const match = micromatch(allFiles, ['*.js', '*.ts'])
return `eslint ${match.join(' ')}`
const codeFiles = micromatch(allFiles, ['**/*.js', '**/*.ts']);
const docFiles = micromatch(allFiles, ['**/*.md']);
return [`eslint ${codeFiles.join(' ')}`, `mdl ${docFiles.join(' ')}`];
}
}
```
Expand Down

0 comments on commit 643038d

Please sign in to comment.