Skip to content

Commit

Permalink
Update .eslintrc.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jakob Guddas <[email protected]>
  • Loading branch information
ericfennis and jguddas authored Nov 1, 2023
1 parent 73335af commit 098a1f8
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
const requiredSVGAttrs = Object.entries({
xmlns: 'http://www.w3.org/2000/svg',
width: 24,
height: 24,
viewBox: '0 0 24 24',
fill: 'none',
stroke: 'currentColor',
'stroke-width': 2,
'stroke-linecap': 'round',
'stroke-linejoin': 'round',
}).map(([attr, value]) => ({
tag: 'svg',
attr,
value: String(value),
}));
import DEFAULT_ATTRS from './scripts/render/default-attrs.json' assert { type: 'json' };
const requiredSVGAttrs = Object.entries(DEFAULT_ATTRS)
.map(([attr, value]) => ({ tag: 'svg', attr, value: String(value) }));

module.exports = {
root: true,
Expand Down

0 comments on commit 098a1f8

Please sign in to comment.