Update lint rules for SVG paths. (#1304)
@ -17,6 +17,11 @@ module.exports = {
|
|||||||
{ // ensure that the title elm has the appropriate attr
|
{ // ensure that the title elm has the appropriate attr
|
||||||
"rule::selector": "svg > title",
|
"rule::selector": "svg > title",
|
||||||
"rule::whitelist": true,
|
"rule::whitelist": true,
|
||||||
|
},
|
||||||
|
{ // ensure that the path element only has the 'd' attr (no style, opacity, etc.)
|
||||||
|
"d": /^[,a-zA-Z0-9\. -]+$/,
|
||||||
|
"rule::selector": "svg > path",
|
||||||
|
"rule::whitelist": true,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Cloudflare icon</title><path class="st2" d="M16.5088 16.8449c.1477-.5065.0914-.9707-.1548-1.3153-.225-.3164-.605-.4995-1.0621-.5206l-8.6589-.113c-.0563 0-.1055-.0265-.1336-.071-.0281-.042-.0352-.0983-.021-.1553.028-.0835.1125-.1486.2039-.1554l8.7362-.113c1.034-.0487 2.1595-.8864 2.5534-1.9133l.4994-1.3013c.021-.0563.0281-.113.0141-.1682-.5627-2.5462-2.8347-4.4455-5.5498-4.4455-2.5041 0-4.6284 1.6179-5.388 3.8617-.4924-.3658-1.1185-.5626-1.7937-.4994-1.2028.1194-2.1665 1.0832-2.286 2.286-.0282.31-.0072.612.0632.8934-1.9625.0563-3.531 1.6601-3.531 3.6366 0 .1757.014.3519.0351.5275.014.0835.0844.1482.1688.1482h15.9812c.0914 0 .1759-.0646.204-.155z"/><path class="st3" d="M19.2661 11.281c-.0774 0-.1618 0-.2392.0113-.0562 0-.1055.0419-.1266.0979l-.3376 1.1746c-.1477.5065-.0915.9707.1547 1.3154.2251.3167.605.4993 1.0622.5205l1.8429.113c.0563 0 .1055.0265.1336.071.0281.042.0352.1063.021.1554-.028.0839-.1125.1485-.204.1553l-1.9202.113c-1.041.0484-2.1594.8864-2.5533 1.9134l-.1407.3586c-.0281.0711.021.141.0985.141h6.5979c.0774 0 .1477-.0488.1688-.1255.1125-.408.1758-.837.1758-1.2801 0-2.6027-2.1242-4.727-4.7338-4.727"/></svg>
|
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Cloudflare icon</title><path d="M16.5088 16.8449c.1477-.5065.0914-.9707-.1548-1.3153-.225-.3164-.605-.4995-1.0621-.5206l-8.6589-.113c-.0563 0-.1055-.0265-.1336-.071-.0281-.042-.0352-.0983-.021-.1553.028-.0835.1125-.1486.2039-.1554l8.7362-.113c1.034-.0487 2.1595-.8864 2.5534-1.9133l.4994-1.3013c.021-.0563.0281-.113.0141-.1682-.5627-2.5462-2.8347-4.4455-5.5498-4.4455-2.5041 0-4.6284 1.6179-5.388 3.8617-.4924-.3658-1.1185-.5626-1.7937-.4994-1.2028.1194-2.1665 1.0832-2.286 2.286-.0282.31-.0072.612.0632.8934-1.9625.0563-3.531 1.6601-3.531 3.6366 0 .1757.014.3519.0351.5275.014.0835.0844.1482.1688.1482h15.9812c.0914 0 .1759-.0646.204-.155z"/><path d="M19.2661 11.281c-.0774 0-.1618 0-.2392.0113-.0562 0-.1055.0419-.1266.0979l-.3376 1.1746c-.1477.5065-.0915.9707.1547 1.3154.2251.3167.605.4993 1.0622.5205l1.8429.113c.0563 0 .1055.0265.1336.071.0281.042.0352.1063.021.1554-.028.0839-.1125.1485-.204.1553l-1.9202.113c-1.041.0484-2.1594.8864-2.5533 1.9134l-.1407.3586c-.0281.0711.021.141.0985.141h6.5979c.0774 0 .1477-.0488.1688-.1255.1125-.408.1758-.837.1758-1.2801 0-2.6027-2.1242-4.727-4.7338-4.727"/></svg>
|
||||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@ -1 +1 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img"><title>Haskell icon</title><path class="a" d="M.006 20.47L5.649 12 .006 3.531h4.235l5.674 8.47-5.674 8.468zm5.643 0L11.29 12 5.65 3.531h4.266l11.253 16.938h-4.224l-3.535-5.34-3.495 5.34zM19.3 15.525l-1.877-2.827h6.571v2.826zm-2.826-4.235l-1.877-2.827h9.387v2.827z"/></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img"><title>Haskell icon</title><path d="M.006 20.47L5.649 12 .006 3.531h4.235l5.674 8.47-5.674 8.468zm5.643 0L11.29 12 5.65 3.531h4.266l11.253 16.938h-4.224l-3.535-5.34-3.495 5.34zM19.3 15.525l-1.877-2.827h6.571v2.826zm-2.826-4.235l-1.877-2.827h9.387v2.827z"/></svg>
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 333 B |
@ -1 +1 @@
|
|||||||
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Netlify icon</title><path class="a" d="M16.934 8.519a1.044 1.044 0 0 1 .303.23l2.349-1.045-2.192-2.171-.491 2.954zM12.06 6.546a1.305 1.305 0 0 1 .209.574l3.497 1.482a1.044 1.044 0 0 1 .355-.177l.574-3.55-2.13-2.234-2.505 3.852v.053zm11.933 5.491l-3.748-3.748-2.548 1.044 6.264 2.662s.053.042.032.042zm-.627.606l-6.013-2.569a1.044 1.044 0 0 1-.7.407l-.647 3.957a1.044 1.044 0 0 1 .303.731l3.633.762 3.33-3.31v-.062zM15.4 9.25L12.132 7.86a1.2 1.2 0 0 1-1.044.543h-.199L8.185 12.58l7.225-3.132v.01a.887.887 0 0 1 0-.167.052.052 0 0 0-.01-.041zm3.967 7.308l-3.195-.658a1.096 1.096 0 0 1-.46.344l-.761 4.72 4.437-4.396s-.01.02-.021.02zm-4.469-.324a1.044 1.044 0 0 1-.616-.71l-5.95-1.222-.084.136 5.398 7.81.323-.324.919-5.67s.031.022.01.011zm-6.441-2.652l5.878 1.211a1.044 1.044 0 0 1 .824-.522l.637-3.894-.135-.115-7.308 3.132a1.817 1.817 0 0 1 .104.188zm-2.464.981l-.125-.125-2.537 1.044 1.232 1.222 1.399-2.172zm1.67.397a1.368 1.368 0 0 1-.563.125 1.389 1.389 0 0 1-.45-.073l-1.544 2.245 6.765 6.702 1.19-1.18zm-.95-2.641a1.702 1.702 0 0 1 .314 0 1.378 1.378 0 0 1 .344 0l2.735-4.25a1.19 1.19 0 0 1-.334-.824 1.242 1.242 0 0 1 0-.271l-3.32-1.535-2.672 2.6zm.303-7.402l3.237 1.378a1.242 1.242 0 0 1 .835-.282 1.357 1.357 0 0 1 .397.063l2.526-3.947L11.923.041 7.016 4.854s-.01.052 0 .063zm-1.21 8.164a1.566 1.566 0 0 1 .24-.334L3.278 8.613 0 11.797l5.804 1.284zm-.262.7L.533 12.735l2.203 2.235 2.777-1.18z"/></svg>
|
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Netlify icon</title><path d="M16.934 8.519a1.044 1.044 0 0 1 .303.23l2.349-1.045-2.192-2.171-.491 2.954zM12.06 6.546a1.305 1.305 0 0 1 .209.574l3.497 1.482a1.044 1.044 0 0 1 .355-.177l.574-3.55-2.13-2.234-2.505 3.852v.053zm11.933 5.491l-3.748-3.748-2.548 1.044 6.264 2.662s.053.042.032.042zm-.627.606l-6.013-2.569a1.044 1.044 0 0 1-.7.407l-.647 3.957a1.044 1.044 0 0 1 .303.731l3.633.762 3.33-3.31v-.062zM15.4 9.25L12.132 7.86a1.2 1.2 0 0 1-1.044.543h-.199L8.185 12.58l7.225-3.132v.01a.887.887 0 0 1 0-.167.052.052 0 0 0-.01-.041zm3.967 7.308l-3.195-.658a1.096 1.096 0 0 1-.46.344l-.761 4.72 4.437-4.396s-.01.02-.021.02zm-4.469-.324a1.044 1.044 0 0 1-.616-.71l-5.95-1.222-.084.136 5.398 7.81.323-.324.919-5.67s.031.022.01.011zm-6.441-2.652l5.878 1.211a1.044 1.044 0 0 1 .824-.522l.637-3.894-.135-.115-7.308 3.132a1.817 1.817 0 0 1 .104.188zm-2.464.981l-.125-.125-2.537 1.044 1.232 1.222 1.399-2.172zm1.67.397a1.368 1.368 0 0 1-.563.125 1.389 1.389 0 0 1-.45-.073l-1.544 2.245 6.765 6.702 1.19-1.18zm-.95-2.641a1.702 1.702 0 0 1 .314 0 1.378 1.378 0 0 1 .344 0l2.735-4.25a1.19 1.19 0 0 1-.334-.824 1.242 1.242 0 0 1 0-.271l-3.32-1.535-2.672 2.6zm.303-7.402l3.237 1.378a1.242 1.242 0 0 1 .835-.282 1.357 1.357 0 0 1 .397.063l2.526-3.947L11.923.041 7.016 4.854s-.01.052 0 .063zm-1.21 8.164a1.566 1.566 0 0 1 .24-.334L3.278 8.613 0 11.797l5.804 1.284zm-.262.7L.533 12.735l2.203 2.235 2.777-1.18z"/></svg>
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
@ -1 +1 @@
|
|||||||
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>YouTube icon</title><path class="a" d="M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"/></svg>
|
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>YouTube icon</title><path d="M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"/></svg>
|
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 504 B |