diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js index adb2b77f0c..917005b65e 100644 --- a/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js @@ -57,6 +57,8 @@ const ATTRIBUTE_TAGS_MAP = { 'animateTransform', 'set', ], + imageSizes: ['link'], + imageSrcSet: ['link'], property: ['meta'], viewBox: ['svg'], as: ['link'], @@ -228,7 +230,7 @@ const DOM_PROPERTY_NAMES_TWO_WORDS = [ // To be considered if these should be added also to ATTRIBUTE_TAGS_MAP 'acceptCharset', 'autoComplete', 'autoPlay', 'cellPadding', 'cellSpacing', 'classID', 'codeBase', 'colSpan', 'contextMenu', 'dateTime', 'encType', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget', - 'frameBorder', 'hrefLang', 'httpEquiv', 'isMap', 'keyParams', 'keyType', 'marginHeight', 'marginWidth', + 'frameBorder', 'hrefLang', 'httpEquiv', 'imageSizes', 'imageSrcSet', 'isMap', 'keyParams', 'keyType', 'marginHeight', 'marginWidth', 'maxLength', 'mediaGroup', 'minLength', 'noValidate', 'onAnimationEnd', 'onAnimationIteration', 'onAnimationStart', 'onBlur', 'onChange', 'onClick', 'onContextMenu', 'onCopy', 'onCompositionEnd', 'onCompositionStart', 'onCompositionUpdate', 'onCut', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', diff --git a/tests/lib/rules/no-unknown-property.js b/tests/lib/rules/no-unknown-property.js index 3025d20d74..672e44b567 100644 --- a/tests/lib/rules/no-unknown-property.js +++ b/tests/lib/rules/no-unknown-property.js @@ -63,6 +63,7 @@ ruleTester.run('no-unknown-property', rule, { { code: '