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,