diff --git a/CHANGELOG.md b/CHANGELOG.md index e47612deb3..aeeae53a8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange * [`jsx-curly-brace-presence`]: handle single and only expression template literals ([#3538][] @taozhou-glean) * [`no-unknown-property`]: allow `onLoad` on `source` (@ljharb) * [`jsx-first-prop-new-line`]: ensure autofix preserves generics in component name ([#3546][] @ljharb) +* [`no-unknown-property`]: allow `fill` prop on `` ([#3555][] @stefanprobst) +[#3555]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3555 [#3548]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3548 [#3546]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3546 [#3538]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3538 diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js index dbb111a0ea..fc57336695 100644 --- a/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js @@ -49,6 +49,7 @@ const ATTRIBUTE_TAGS_MAP = { 'polyline', 'rect', 'svg', + 'symbol', 'text', 'textPath', 'tref', diff --git a/tests/lib/rules/no-unknown-property.js b/tests/lib/rules/no-unknown-property.js index 97fb9f3dc1..0fc510e3b5 100644 --- a/tests/lib/rules/no-unknown-property.js +++ b/tests/lib/rules/no-unknown-property.js @@ -58,6 +58,7 @@ ruleTester.run('no-unknown-property', rule, { { code: '' }, { code: '' }, { code: '' }, + { code: '' }, { code: '' }, { code: '' }, { code: '