1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Update svglint to 3.1.0

The new release contains:
 - https://github.com/simple-icons/svglint/pull/110
 - https://github.com/simple-icons/svglint/pull/111

which allow us to slightly simplify our code.
This commit is contained in:
Calixte Denizet 2024-08-30 19:18:36 +02:00
parent 3219d4905d
commit 1c5d93cf2d
4 changed files with 23 additions and 12 deletions

View file

@ -1983,8 +1983,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" });
@ -2009,12 +2010,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) {