Skip to content

Commit

Permalink
docs: improve example perfomance by returning single command (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich authored and iiroj committed Dec 6, 2019
1 parent 6af8307 commit 33b9752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -220,7 +220,7 @@ const micromatch = require('micromatch')
module.exports = {
'*': allFiles => {
const match = micromatch(allFiles, ['*.js', '*.ts'])
return match.map(file => `eslint ${file}`)
return `eslint ${match.join(" ")}`
}
}
```
Expand All @@ -236,7 +236,7 @@ module.exports = {
'*.js': files => {
// from `files` filter those _NOT_ matching `*test.js`
const match = micromatch.not(files, '*test.js')
return match.map(file => `eslint ${file}`)
return `eslint ${match.join(" ")}`
}
}
```
Expand Down

0 comments on commit 33b9752

Please sign in to comment.