forked from buerokratt/cvi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.svglintrc.js
45 lines (45 loc) · 922 Bytes
/
.svglintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
rules: {
elm: {
svg: 1,
'svg > style': 0,
'g > :only-child': 0,
},
attr: [
{
'rule::selector': 'svg',
viewBox: true,
version: false,
id: false,
'data-name': false,
class: false,
style: false,
xmlns: 'http://www.w3.org/2000/svg',
fill: false,
'xmlns:dc': false,
'xmlns:cc': false,
'xmlns:rdf': false,
'xmlns:svg': false,
'xml:space': false,
'xmlns:sodipodi': false,
'xmlns:inkscape': false,
x: false,
y: false,
},
{
'rule::selector': 'svg g',
style: false,
fill: false,
id: false,
class: false,
},
{
'rule::selector': 'svg path',
style: false,
fill: false,
'fill-opacity': false,
class: false,
},
],
},
};