diff --git a/.svglintrc.js b/.svglintrc.js index 488df0bf..16c98506 100644 --- a/.svglintrc.js +++ b/.svglintrc.js @@ -136,12 +136,13 @@ module.exports = { }, attr: [ { - // ensure that the SVG elm has the appropriate attrs + // ensure that the SVG elm has the appropriate attrs alphabetically ordered role: 'img', viewBox: `0 0 ${iconSize} ${iconSize}`, xmlns: 'http://www.w3.org/2000/svg', 'rule::selector': 'svg', 'rule::whitelist': true, + 'rule::order': true, }, { // ensure that the title elm has the appropriate attr diff --git a/icons/arxiv.svg b/icons/arxiv.svg index 81e29952..4d09be69 100644 --- a/icons/arxiv.svg +++ b/icons/arxiv.svg @@ -1 +1 @@ -arXiv \ No newline at end of file +arXiv \ No newline at end of file diff --git a/icons/avast.svg b/icons/avast.svg index c4fed15f..e5f8e066 100644 --- a/icons/avast.svg +++ b/icons/avast.svg @@ -1 +1 @@ -Avast \ No newline at end of file +Avast \ No newline at end of file diff --git a/icons/backbonedotjs.svg b/icons/backbonedotjs.svg index 963149f6..dfe8da72 100644 --- a/icons/backbonedotjs.svg +++ b/icons/backbonedotjs.svg @@ -1 +1 @@ -Backbone.js \ No newline at end of file +Backbone.js \ No newline at end of file diff --git a/icons/bem.svg b/icons/bem.svg index 71c6306d..ddb699ad 100644 --- a/icons/bem.svg +++ b/icons/bem.svg @@ -1 +1 @@ -BEM \ No newline at end of file +BEM \ No newline at end of file diff --git a/icons/biolink.svg b/icons/biolink.svg index cd547f44..625e5aaa 100644 --- a/icons/biolink.svg +++ b/icons/biolink.svg @@ -1 +1 @@ -Bio Link \ No newline at end of file +Bio Link \ No newline at end of file diff --git a/icons/cockpit.svg b/icons/cockpit.svg index 850df9ca..4bcff12b 100644 --- a/icons/cockpit.svg +++ b/icons/cockpit.svg @@ -1 +1 @@ -Cockpit \ No newline at end of file +Cockpit \ No newline at end of file diff --git a/icons/codereview.svg b/icons/codereview.svg index 89c7ac47..87079abd 100644 --- a/icons/codereview.svg +++ b/icons/codereview.svg @@ -1 +1 @@ -Code Review \ No newline at end of file +Code Review \ No newline at end of file diff --git a/icons/coil.svg b/icons/coil.svg index fcaafc6a..37cc81b7 100644 --- a/icons/coil.svg +++ b/icons/coil.svg @@ -1 +1 @@ -Coil \ No newline at end of file +Coil \ No newline at end of file diff --git a/icons/datagrip.svg b/icons/datagrip.svg index faed127c..2298a531 100644 --- a/icons/datagrip.svg +++ b/icons/datagrip.svg @@ -1 +1 @@ -DataGrip \ No newline at end of file +DataGrip \ No newline at end of file diff --git a/icons/dlib.svg b/icons/dlib.svg index 656dfac1..1926ddf7 100644 --- a/icons/dlib.svg +++ b/icons/dlib.svg @@ -1 +1 @@ -Dlib \ No newline at end of file +Dlib \ No newline at end of file diff --git a/icons/esbuild.svg b/icons/esbuild.svg index 9ffd518a..06c1acc7 100644 --- a/icons/esbuild.svg +++ b/icons/esbuild.svg @@ -1 +1 @@ -esbuild \ No newline at end of file +esbuild \ No newline at end of file diff --git a/icons/fivem.svg b/icons/fivem.svg index 46f72f3b..aa92a0e1 100644 --- a/icons/fivem.svg +++ b/icons/fivem.svg @@ -1 +1 @@ -FiveM \ No newline at end of file +FiveM \ No newline at end of file diff --git a/icons/foursquare.svg b/icons/foursquare.svg index 426c64f9..b7add8c0 100644 --- a/icons/foursquare.svg +++ b/icons/foursquare.svg @@ -1 +1 @@ -Foursquare \ No newline at end of file +Foursquare \ No newline at end of file diff --git a/icons/framework7.svg b/icons/framework7.svg index 60dd7bf0..6c1ba053 100644 --- a/icons/framework7.svg +++ b/icons/framework7.svg @@ -1 +1 @@ -Framework7 \ No newline at end of file +Framework7 \ No newline at end of file diff --git a/icons/goland.svg b/icons/goland.svg index 695fc9f6..b645be9f 100644 --- a/icons/goland.svg +++ b/icons/goland.svg @@ -1 +1 @@ -GoLand \ No newline at end of file +GoLand \ No newline at end of file diff --git a/icons/kaggle.svg b/icons/kaggle.svg index 83ee2ce7..372d0865 100644 --- a/icons/kaggle.svg +++ b/icons/kaggle.svg @@ -1 +1 @@ -Kaggle \ No newline at end of file +Kaggle \ No newline at end of file diff --git a/icons/koa.svg b/icons/koa.svg index 792af098..4a99aae4 100644 --- a/icons/koa.svg +++ b/icons/koa.svg @@ -1 +1 @@ -Koa \ No newline at end of file +Koa \ No newline at end of file diff --git a/icons/kotlin.svg b/icons/kotlin.svg index b76289ed..adf2975b 100644 --- a/icons/kotlin.svg +++ b/icons/kotlin.svg @@ -1 +1 @@ -Kotlin \ No newline at end of file +Kotlin \ No newline at end of file diff --git a/icons/lerna.svg b/icons/lerna.svg index 6755a483..4cc1e561 100644 --- a/icons/lerna.svg +++ b/icons/lerna.svg @@ -1 +1 @@ -Lerna \ No newline at end of file +Lerna \ No newline at end of file diff --git a/icons/merck.svg b/icons/merck.svg index 47aa3b9f..312445ad 100644 --- a/icons/merck.svg +++ b/icons/merck.svg @@ -1 +1 @@ -Merck \ No newline at end of file +Merck \ No newline at end of file diff --git a/icons/nzxt.svg b/icons/nzxt.svg index 69c2e6fc..e01d4cab 100644 --- a/icons/nzxt.svg +++ b/icons/nzxt.svg @@ -1 +1 @@ -NZXT \ No newline at end of file +NZXT \ No newline at end of file diff --git a/icons/openmined.svg b/icons/openmined.svg index ac999fb2..79649892 100644 --- a/icons/openmined.svg +++ b/icons/openmined.svg @@ -1 +1 @@ -OpenMined \ No newline at end of file +OpenMined \ No newline at end of file diff --git a/icons/phpmyadmin.svg b/icons/phpmyadmin.svg index 8d40ea40..9b23e406 100644 --- a/icons/phpmyadmin.svg +++ b/icons/phpmyadmin.svg @@ -1 +1 @@ -phpMyAdmin \ No newline at end of file +phpMyAdmin \ No newline at end of file diff --git a/icons/qualys.svg b/icons/qualys.svg index f38c7781..2f0bb40b 100644 --- a/icons/qualys.svg +++ b/icons/qualys.svg @@ -1 +1 @@ -Qualys \ No newline at end of file +Qualys \ No newline at end of file diff --git a/icons/reactivex.svg b/icons/reactivex.svg index e93cfb6d..923633ff 100644 --- a/icons/reactivex.svg +++ b/icons/reactivex.svg @@ -1 +1 @@ -ReactiveX \ No newline at end of file +ReactiveX \ No newline at end of file diff --git a/icons/rome.svg b/icons/rome.svg index 9ee75397..a1c24ac7 100644 --- a/icons/rome.svg +++ b/icons/rome.svg @@ -1 +1 @@ -Rome \ No newline at end of file +Rome \ No newline at end of file diff --git a/icons/saltproject.svg b/icons/saltproject.svg index 564602ed..3c8adee3 100644 --- a/icons/saltproject.svg +++ b/icons/saltproject.svg @@ -1 +1 @@ -Salt Project \ No newline at end of file +Salt Project \ No newline at end of file diff --git a/icons/snowpack.svg b/icons/snowpack.svg index 516b9166..03f6d34b 100644 --- a/icons/snowpack.svg +++ b/icons/snowpack.svg @@ -1 +1 @@ -Snowpack \ No newline at end of file +Snowpack \ No newline at end of file diff --git a/icons/tether.svg b/icons/tether.svg index fa3461d0..758427f2 100644 --- a/icons/tether.svg +++ b/icons/tether.svg @@ -1 +1 @@ -Tether \ No newline at end of file +Tether \ No newline at end of file diff --git a/icons/thenorthface.svg b/icons/thenorthface.svg index f19d92d9..9a98069c 100644 --- a/icons/thenorthface.svg +++ b/icons/thenorthface.svg @@ -1 +1 @@ -The North Face \ No newline at end of file +The North Face \ No newline at end of file diff --git a/icons/udemy.svg b/icons/udemy.svg index 0d50532f..efa25d64 100644 --- a/icons/udemy.svg +++ b/icons/udemy.svg @@ -1 +1 @@ -Udemy \ No newline at end of file +Udemy \ No newline at end of file diff --git a/icons/web3dotjs.svg b/icons/web3dotjs.svg index 2a900d7e..b617387d 100644 --- a/icons/web3dotjs.svg +++ b/icons/web3dotjs.svg @@ -1 +1 @@ -Web3.js +Web3.js \ No newline at end of file diff --git a/icons/windicss.svg b/icons/windicss.svg index 3801e8e7..0e17fdfb 100644 --- a/icons/windicss.svg +++ b/icons/windicss.svg @@ -1 +1 @@ -Windi CSS \ No newline at end of file +Windi CSS \ No newline at end of file diff --git a/icons/zyte.svg b/icons/zyte.svg index 301be696..882f57a1 100644 --- a/icons/zyte.svg +++ b/icons/zyte.svg @@ -1 +1 @@ -Zyte \ No newline at end of file +Zyte \ No newline at end of file diff --git a/package.json b/package.json index fb4d06c7..5badcffe 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "rimraf": "3.0.2", "svg-path-bbox": "1.0.1", "svg-path-segments": "1.0.0", - "svglint": "1.2.0", + "svglint": "1.3.0", "svgo": "2.8.0", "svgpath": "2.3.1", "uvu": "0.5.2" diff --git a/tests/test-icon.js b/tests/test-icon.js index 974b97bf..882f9a36 100644 --- a/tests/test-icon.js +++ b/tests/test-icon.js @@ -64,11 +64,7 @@ const testIcon = (icon, subject, slug) => { const svgFileContents = fs .readFileSync(svgPath, 'utf8') .replace(/\r?\n/, ''); - - assert.is( - subject.svg.substring(subject.svg.indexOf('')), - svgFileContents.substring(svgFileContents.indexOf('<title>')), - ); + assert.is(subject.svg, svgFileContents); }); test.run();