Skip to content

Commit

Permalink
fix: allow fill prop on symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Mar 20, 2023
1 parent f56851b commit 6b04b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rules/no-unknown-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const ATTRIBUTE_TAGS_MAP = {
'polyline',
'rect',
'svg',
'symbol',
'text',
'textPath',
'tref',
Expand Down
1 change: 1 addition & 0 deletions tests/lib/rules/no-unknown-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ ruleTester.run('no-unknown-property', rule, {
{ 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>' },
{ code: '<g fill="#7B82A0" fillRule="evenodd"></g>' },
{ code: '<mask fill="#7B82A0"></mask>' },
{ code: '<symbol fill="#7B82A0"></symbol>' },
{ code: '<meta property="og:type" content="website" />' },
{ code: '<input type="checkbox" checked={checked} disabled={disabled} id={id} onChange={onChange} />' },
{ code: '<video playsInline />' },
Expand Down

0 comments on commit 6b04b4e

Please sign in to comment.