From c7834c54d8d81150f34da9ec48ed16ffb175015d Mon Sep 17 00:00:00 2001 From: Alexander T Date: Thu, 8 Aug 2019 12:12:42 +0300 Subject: [PATCH] fix eslint paths --- Gulpfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 26df480e082..e2e972a0a45 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -339,7 +339,7 @@ const eslint = (path) => async () => { "--format", "autolinkable-stylish", "--rulesdir", "scripts/eslint/built/rules", "--ext", ".ts", - `"${ path }"`, + `${ path }`, ]; if (cmdLineOptions.fix) { @@ -350,12 +350,12 @@ const eslint = (path) => async () => { return exec(process.execPath, args); } -const lintScripts = eslint("scripts/**/*.ts"); +const lintScripts = eslint("scripts"); lintScripts.displayName = "lint-scripts"; task("lint-scripts", series([buildEslintRules, lintFoldStart, lintScripts, lintFoldEnd])); task("lint-scripts").description = "Runs eslint on the scripts sources."; -const lintCompiler = eslint("src/**/*.ts"); +const lintCompiler = eslint("src"); lintCompiler.displayName = "lint-compiler"; task("lint-compiler", series([buildEslintRules, lintFoldStart, lintCompiler, lintFoldEnd])); task("lint-compiler").description = "Runs eslint on the compiler sources.";