eslint-plugin-react
Advanced tools
Comparing version 7.31.7 to 7.31.8
@@ -24,8 +24,10 @@ /** | ||
class: 'className', | ||
for: 'htmlFor', | ||
'http-equiv': 'httpEquiv', | ||
crossorigin: 'crossOrigin', | ||
for: 'htmlFor', | ||
nomodule: 'noModule', | ||
}; | ||
const ATTRIBUTE_TAGS_MAP = { | ||
abbr: ['th', 'td'], | ||
checked: ['input'], | ||
@@ -65,5 +67,7 @@ // image is required for SVG support, all other tags are HTML. | ||
property: ['meta'], | ||
viewBox: ['svg'], | ||
viewBox: ['marker', 'pattern', 'svg', 'symbol', 'view'], | ||
as: ['link'], | ||
align: ['applet', 'caption', 'col', 'colgroup', 'hr', 'iframe', 'img', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr'], // deprecated, but known | ||
valign: ['tr', 'td', 'th', 'thead', 'tbody', 'tfoot', 'colgroup', 'col'], // deprecated, but known | ||
noModule: ['script'], | ||
// Media events allowed only on audio and video tags, see https://github.com/facebook/react/blob/256aefbea1449869620fb26f6ec695536ab453f5/CHANGELOG.md#notable-enhancements | ||
@@ -78,3 +82,3 @@ onAbort: ['audio', 'video'], | ||
onError: ['audio', 'video', 'img', 'link', 'source', 'script', 'picture', 'iframe'], | ||
onLoad: ['script', 'img', 'link', 'picture', 'iframe'], | ||
onLoad: ['script', 'img', 'link', 'picture', 'iframe', 'object'], | ||
onLoadedData: ['audio', 'video'], | ||
@@ -81,0 +85,0 @@ onLoadedMetadata: ['audio', 'video'], |
@@ -595,2 +595,6 @@ /** | ||
if (parent.type === 'Property' && utils.isReturningOnlyNull(node)) { | ||
return undefined; | ||
} | ||
return node; | ||
@@ -597,0 +601,0 @@ } |
{ | ||
"name": "eslint-plugin-react", | ||
"version": "7.31.7", | ||
"version": "7.31.8", | ||
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>", | ||
@@ -98,5 +98,6 @@ "description": "React specific linting rules for ESLint", | ||
".editorconfig", | ||
"tsconfig.json" | ||
"tsconfig.json", | ||
".markdownlint*" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
750261
20709
128