Skip to content

Commit

Permalink
Removed unnecessary mapping and tests handled by React's existing war…
Browse files Browse the repository at this point in the history
…nings.
  • Loading branch information
Johnny Zarate authored and ljharb committed Jan 26, 2018
1 parent f947536 commit a19b2ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions lib/rules/no-unknown-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ const DOM_ATTRIBUTE_NAMES = {
'accept-charset': 'acceptCharset',
class: 'className',
for: 'htmlFor',
'http-equiv': 'httpEquiv',
crossorigin: 'crossOrigin'
'http-equiv': 'httpEquiv'
};

const ATTRIBUTE_TAGS_MAP = {
Expand Down
6 changes: 0 additions & 6 deletions tests/lib/rules/no-unknown-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ ruleTester.run('no-unknown-property', rule, {
code: '<rect clip-path="bar" />;',
output: '<rect clipPath="bar" />;',
errors: [{message: 'Unknown property \'clip-path\' found, use \'clipPath\' instead'}]
}, {
code: '<script crossorigin />',
errors: [{message: 'Unknown property \'crossorigin\' found, use \'crossOrigin\' instead'}]
}, {
code: '<div crossorigin />',
errors: [{message: 'Unknown property \'crossorigin\' found, use \'crossOrigin\' instead'}]
}, {
code: '<div crossOrigin />',
errors: [{message: 'Invalid property \'crossOrigin\' found on tag \'div\', but it is only allowed on: script, img, video'}]
Expand Down

0 comments on commit a19b2ad

Please sign in to comment.