Skip to content

Commit 1c5d93c

Browse files
committed
Update svglint to 3.1.0
The new release contains: - simple-icons/svglint#110 - simple-icons/svglint#111 which allow us to slightly simplify our code.
1 parent 3219d49 commit 1c5d93c

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

.svglintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,18 @@ export default {
1818
},
1919
],
2020
},
21+
ignore: [
22+
"build/**",
23+
"l10n/**",
24+
"docs/**",
25+
"node_modules/**",
26+
"external/bcmaps/**",
27+
"external/builder/fixtures/**",
28+
"external/builder/fixtures_babel/**",
29+
"external/quickjs/**",
30+
"test/tmp/**",
31+
"test/pdfs/**",
32+
"web/locale/**",
33+
"*~/**",
34+
],
2135
};

gulpfile.mjs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,8 +1983,9 @@ gulp.task("lint", function (done) {
19831983

19841984
const svgLintOptions = [
19851985
"node_modules/svglint/bin/cli.js",
1986-
"web/**/*.svg",
1986+
"**/*.svg",
19871987
"--ci",
1988+
"--no-summary",
19881989
];
19891990

19901991
const esLintProcess = startNode(esLintOptions, { stdio: "inherit" });
@@ -2009,12 +2010,7 @@ gulp.task("lint", function (done) {
20092010
}
20102011

20112012
const svgLintProcess = startNode(svgLintOptions, {
2012-
stdio: "pipe",
2013-
});
2014-
svgLintProcess.stdout.setEncoding("utf8");
2015-
svgLintProcess.stdout.on("data", m => {
2016-
m = m.toString().replace(/-+ Summary -+.*/ms, "");
2017-
console.log(m);
2013+
stdio: "inherit",
20182014
});
20192015
svgLintProcess.on("close", function (svgLintCode) {
20202016
if (svgLintCode !== 0) {

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"puppeteer": "23.3.1",
4949
"stylelint": "^16.10.0",
5050
"stylelint-prettier": "^5.0.2",
51-
"svglint": "^3.0.0",
51+
"svglint": "^3.1.0",
5252
"terser-webpack-plugin": "^5.3.10",
5353
"tsc-alias": "^1.8.10",
5454
"ttest": "^4.0.0",

0 commit comments

Comments
 (0)