Skip to content

Commit 6b04b4e

Browse files
committed
fix: allow fill prop on symbol
1 parent f56851b commit 6b04b4e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/rules/no-unknown-property.js

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const ATTRIBUTE_TAGS_MAP = {
4949
'polyline',
5050
'rect',
5151
'svg',
52+
'symbol',
5253
'text',
5354
'textPath',
5455
'tref',

tests/lib/rules/no-unknown-property.js

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ruleTester.run('no-unknown-property', rule, {
5858
{ code: '<svg key="lock" viewBox="box" fill={10} d="d" stroke={1} strokeWidth={2} strokeLinecap={3} strokeLinejoin={4} transform="something" clipRule="else" x1={5} x2="6" y1="7" y2="8"></svg>' },
5959
{ code: '<g fill="#7B82A0" fillRule="evenodd"></g>' },
6060
{ code: '<mask fill="#7B82A0"></mask>' },
61+
{ code: '<symbol fill="#7B82A0"></symbol>' },
6162
{ code: '<meta property="og:type" content="website" />' },
6263
{ code: '<input type="checkbox" checked={checked} disabled={disabled} id={id} onChange={onChange} />' },
6364
{ code: '<video playsInline />' },

0 commit comments

Comments
 (0)