Skip to content

Commit 333fbe5

Browse files
authored
Add DOM prop definition
1 parent 2b460bb commit 333fbe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rules/no-unknown-property.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const DOM_ATTRIBUTE_NAMES = {
2626
crossorigin: 'crossOrigin',
2727
for: 'htmlFor',
2828
nomodule: 'noModule',
29+
displaystyle: 'displayStyle',
2930
};
3031

3132
const ATTRIBUTE_TAGS_MAP = {
@@ -34,7 +35,7 @@ const ATTRIBUTE_TAGS_MAP = {
3435
checked: ['input'],
3536
// image is required for SVG support, all other tags are HTML.
3637
crossOrigin: ['script', 'img', 'video', 'audio', 'link', 'image'],
37-
displaystyle: ['math'],
38+
displayStyle: ['math'],
3839
// https://html.spec.whatwg.org/multipage/links.html#downloading-resources
3940
download: ['a', 'area'],
4041
fill: [ // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill

0 commit comments

Comments
 (0)