From 098a1f847fb43f8a580c0e04b4ab0270df28c5ff Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Wed, 1 Nov 2023 20:26:24 +0100 Subject: [PATCH] Update .eslintrc.js Co-authored-by: Jakob Guddas --- .eslintrc.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c2b92d1d5ad..2d7e61b78b1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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,