diff --git a/.svglintrc.js b/.svglintrc.js index 25dad02764f521..25277f16ebdebd 100644 --- a/.svglintrc.js +++ b/.svglintrc.js @@ -18,4 +18,13 @@ export default { }, ], }, + ignore: [ + "build/**", + "docs/**", + "node_modules/**", + "web/locale/**", + "*~/**", + "test/**", + "src/**", + ], }; diff --git a/gulpfile.mjs b/gulpfile.mjs index bab6751ef9b631..a5720bd444926a 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -1932,8 +1932,9 @@ gulp.task("lint", function (done) { const svgLintOptions = [ "node_modules/svglint/bin/cli.js", - "web/**/*.svg", + "**/*.svg", "--ci", + "--no-summary", ]; const esLintProcess = startNode(esLintOptions, { stdio: "inherit" }); @@ -1958,12 +1959,7 @@ gulp.task("lint", function (done) { } const svgLintProcess = startNode(svgLintOptions, { - stdio: "pipe", - }); - svgLintProcess.stdout.setEncoding("utf8"); - svgLintProcess.stdout.on("data", m => { - m = m.toString().replace(/-+ Summary -+.*/ms, ""); - console.log(m); + stdio: "inherit", }); svgLintProcess.on("close", function (svgLintCode) { if (svgLintCode !== 0) {