Skip to content

Commit 00824af

Browse files
committed
Fix linting
1 parent d4c7254 commit 00824af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gulp/tasks/check.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const format = () =>
1111
gulpExeca(`prettier --write --loglevel warn ${FILES.CHECK.join(' ')}`)
1212

1313
// We do not use `gulp-eslint` because it does not support --cache
14-
const eslint = () =>
15-
gulpExeca(
16-
`eslint ${FILES.CHECK.join(
17-
' ',
18-
)} --ignore-path .gitignore --fix --cache --format codeframe --max-warnings 0 --report-unused-disable-directives`,
14+
const eslint = () => {
15+
const files = FILES.CHECK.map(pattern => `'${pattern}'`).join(' ')
16+
return gulpExeca(
17+
`eslint ${files} --ignore-path .gitignore --fix --cache --format codeframe --max-warnings 0 --report-unused-disable-directives`,
1918
)
19+
}
2020

2121
const lint = series(format, eslint)
2222

0 commit comments

Comments
 (0)