From 95b2ac0b190ff6437e9bb4cfd39eb537bb8bd66c Mon Sep 17 00:00:00 2001 From: Senja Jarva Date: Mon, 5 Sep 2022 14:21:49 +0300 Subject: [PATCH] Add more one word properties found in DefinitelyTyped's react/index.d.ts Manifest, summary, wmode, results, security --- lib/rules/no-unknown-property.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js index 6de2fc096f..1bd94fa201 100644 --- a/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js @@ -194,10 +194,10 @@ const DOM_PROPERTY_NAMES_ONE_WORD = [ 'accept', 'action', 'allow', 'alt', 'as', 'async', 'buffered', 'capture', 'challenge', 'cite', 'code', 'cols', 'content', 'coords', 'csp', 'data', 'decoding', 'default', 'defer', 'disabled', 'form', 'headers', 'height', 'high', 'href', 'icon', 'importance', 'integrity', 'kind', 'label', - 'language', 'loading', 'list', 'loop', 'low', 'max', 'media', 'method', 'min', 'multiple', 'muted', + 'language', 'loading', 'list', 'loop', 'low', 'manifest', 'max', 'media', 'method', 'min', 'multiple', 'muted', 'name', 'open', 'optimum', 'pattern', 'ping', 'placeholder', 'poster', 'preload', 'profile', - 'rel', 'required', 'reversed', 'role', 'rows', 'sandbox', 'scope', 'selected', 'shape', 'size', 'sizes', - 'span', 'src', 'start', 'step', 'target', 'type', 'value', 'width', 'wrap', + 'rel', 'required', 'reversed', 'role', 'rows', 'sandbox', 'scope', 'seamless', 'selected', 'shape', 'size', 'sizes', + 'span', 'src', 'start', 'step', 'summary', 'target', 'type', 'value', 'width', 'wmode', 'wrap', // SVG attributes // See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute 'accumulate', 'additive', 'alphabetic', 'amplitude', 'ascent', 'azimuth', 'bbox', 'begin', @@ -214,6 +214,8 @@ const DOM_PROPERTY_NAMES_ONE_WORD = [ 'property', // React specific attributes 'ref', 'key', 'children', + // Non-standard + 'results', 'security', // Video specific 'controls', ];