From f947536ce6daa5b796827e0fc61cbbbd005ed1d3 Mon Sep 17 00:00:00 2001 From: Johnny Zarate Date: Fri, 26 Jan 2018 10:54:25 -0800 Subject: [PATCH] Fixed crossorigin naming convention to match React's supported HTML attributes. --- lib/rules/no-unknown-property.js | 4 ++-- tests/lib/rules/no-unknown-property.js | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js index 70b5772dc4..c22ae74e53 100644 --- a/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js @@ -22,11 +22,11 @@ const DOM_ATTRIBUTE_NAMES = { class: 'className', for: 'htmlFor', 'http-equiv': 'httpEquiv', - crossOrigin: 'crossorigin' + crossorigin: 'crossOrigin' }; const ATTRIBUTE_TAGS_MAP = { - crossorigin: ['script', 'img', 'video'] + crossOrigin: ['script', 'img', 'video'] }; const SVGDOM_ATTRIBUTE_NAMES = { diff --git a/tests/lib/rules/no-unknown-property.js b/tests/lib/rules/no-unknown-property.js index 5a730b9c29..66f2d8e61c 100644 --- a/tests/lib/rules/no-unknown-property.js +++ b/tests/lib/rules/no-unknown-property.js @@ -42,7 +42,7 @@ ruleTester.run('no-unknown-property', rule, { code: '
;', options: [{ignore: ['class']}] }, - {code: '