Skip to content

Commit

Permalink
Update svglint to ***
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Aug 30, 2024
1 parent 7494dbc commit d92ff77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .svglintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ export default {
},
],
},
ignore: [
"build/**",
"docs/**",
"node_modules/**",
"web/locale/**",
"*~/**",
"test/**",
"src/**",
],
};
10 changes: 3 additions & 7 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand All @@ -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) {
Expand Down

0 comments on commit d92ff77

Please sign in to comment.