mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-18 14:18:23 +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:
parent
3219d4905d
commit
1c5d93cf2d
4 changed files with 23 additions and 12 deletions
|
@ -18,4 +18,18 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
ignore: [
|
||||||
|
"build/**",
|
||||||
|
"l10n/**",
|
||||||
|
"docs/**",
|
||||||
|
"node_modules/**",
|
||||||
|
"external/bcmaps/**",
|
||||||
|
"external/builder/fixtures/**",
|
||||||
|
"external/builder/fixtures_babel/**",
|
||||||
|
"external/quickjs/**",
|
||||||
|
"test/tmp/**",
|
||||||
|
"test/pdfs/**",
|
||||||
|
"web/locale/**",
|
||||||
|
"*~/**",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
10
gulpfile.mjs
10
gulpfile.mjs
|
@ -1983,8 +1983,9 @@ gulp.task("lint", function (done) {
|
||||||
|
|
||||||
const svgLintOptions = [
|
const svgLintOptions = [
|
||||||
"node_modules/svglint/bin/cli.js",
|
"node_modules/svglint/bin/cli.js",
|
||||||
"web/**/*.svg",
|
"**/*.svg",
|
||||||
"--ci",
|
"--ci",
|
||||||
|
"--no-summary",
|
||||||
];
|
];
|
||||||
|
|
||||||
const esLintProcess = startNode(esLintOptions, { stdio: "inherit" });
|
const esLintProcess = startNode(esLintOptions, { stdio: "inherit" });
|
||||||
|
@ -2009,12 +2010,7 @@ gulp.task("lint", function (done) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const svgLintProcess = startNode(svgLintOptions, {
|
const svgLintProcess = startNode(svgLintOptions, {
|
||||||
stdio: "pipe",
|
stdio: "inherit",
|
||||||
});
|
|
||||||
svgLintProcess.stdout.setEncoding("utf8");
|
|
||||||
svgLintProcess.stdout.on("data", m => {
|
|
||||||
m = m.toString().replace(/-+ Summary -+.*/ms, "");
|
|
||||||
console.log(m);
|
|
||||||
});
|
});
|
||||||
svgLintProcess.on("close", function (svgLintCode) {
|
svgLintProcess.on("close", function (svgLintCode) {
|
||||||
if (svgLintCode !== 0) {
|
if (svgLintCode !== 0) {
|
||||||
|
|
9
package-lock.json
generated
9
package-lock.json
generated
|
@ -53,7 +53,7 @@
|
||||||
"puppeteer": "23.3.1",
|
"puppeteer": "23.3.1",
|
||||||
"stylelint": "^16.10.0",
|
"stylelint": "^16.10.0",
|
||||||
"stylelint-prettier": "^5.0.2",
|
"stylelint-prettier": "^5.0.2",
|
||||||
"svglint": "^3.0.0",
|
"svglint": "^3.1.0",
|
||||||
"terser-webpack-plugin": "^5.3.10",
|
"terser-webpack-plugin": "^5.3.10",
|
||||||
"tsc-alias": "^1.8.10",
|
"tsc-alias": "^1.8.10",
|
||||||
"ttest": "^4.0.0",
|
"ttest": "^4.0.0",
|
||||||
|
@ -12521,10 +12521,11 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/svglint": {
|
"node_modules/svglint": {
|
||||||
"version": "3.0.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/svglint/-/svglint-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/svglint/-/svglint-3.1.0.tgz",
|
||||||
"integrity": "sha512-WX1gta0wz0dH35J5Dq3CP4Mz2jrrxrSqmEyehtraZaw4L4KRKAcTADaHxmj4Z+qYB6DP3IbDnaKNaQDFrpvVvA==",
|
"integrity": "sha512-5poEBAiB1VpswI2YLS2tx50/KfbcYc3AWWjsXBQJxcl6nkx632+LvN3biopFJbPGU1qrSnPQ22Iq42pFzbvBZw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-regex": "^6.0.1",
|
"ansi-regex": "^6.0.1",
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
"puppeteer": "23.3.1",
|
"puppeteer": "23.3.1",
|
||||||
"stylelint": "^16.10.0",
|
"stylelint": "^16.10.0",
|
||||||
"stylelint-prettier": "^5.0.2",
|
"stylelint-prettier": "^5.0.2",
|
||||||
"svglint": "^3.0.0",
|
"svglint": "^3.1.0",
|
||||||
"terser-webpack-plugin": "^5.3.10",
|
"terser-webpack-plugin": "^5.3.10",
|
||||||
"tsc-alias": "^1.8.10",
|
"tsc-alias": "^1.8.10",
|
||||||
"ttest": "^4.0.0",
|
"ttest": "^4.0.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue