We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c7254 commit 00824afCopy full SHA for 00824af
gulp/tasks/check.js
@@ -11,12 +11,12 @@ const format = () =>
11
gulpExeca(`prettier --write --loglevel warn ${FILES.CHECK.join(' ')}`)
12
13
// 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`,
+const eslint = () => {
+ const files = FILES.CHECK.map(pattern => `'${pattern}'`).join(' ')
+ return gulpExeca(
+ `eslint ${files} --ignore-path .gitignore --fix --cache --format codeframe --max-warnings 0 --report-unused-disable-directives`,
19
)
+}
20
21
const lint = series(format, eslint)
22
0 commit comments