Skip to content

Commit a19b2ad

Browse files
Johnny Zarateljharb
Johnny Zarate
authored andcommitted
Removed unnecessary mapping and tests handled by React's existing warnings.
1 parent f947536 commit a19b2ad

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

lib/rules/no-unknown-property.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ const DOM_ATTRIBUTE_NAMES = {
2121
'accept-charset': 'acceptCharset',
2222
class: 'className',
2323
for: 'htmlFor',
24-
'http-equiv': 'httpEquiv',
25-
crossorigin: 'crossOrigin'
24+
'http-equiv': 'httpEquiv'
2625
};
2726

2827
const ATTRIBUTE_TAGS_MAP = {

tests/lib/rules/no-unknown-property.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ ruleTester.run('no-unknown-property', rule, {
8080
code: '<rect clip-path="bar" />;',
8181
output: '<rect clipPath="bar" />;',
8282
errors: [{message: 'Unknown property \'clip-path\' found, use \'clipPath\' instead'}]
83-
}, {
84-
code: '<script crossorigin />',
85-
errors: [{message: 'Unknown property \'crossorigin\' found, use \'crossOrigin\' instead'}]
86-
}, {
87-
code: '<div crossorigin />',
88-
errors: [{message: 'Unknown property \'crossorigin\' found, use \'crossOrigin\' instead'}]
8983
}, {
9084
code: '<div crossOrigin />',
9185
errors: [{message: 'Invalid property \'crossOrigin\' found on tag \'div\', but it is only allowed on: script, img, video'}]

0 commit comments

Comments
 (0)