Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
2
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react - npm Package Compare versions

Comparing version 7.31.7 to 7.31.8

10

lib/rules/no-unknown-property.js

@@ -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*"
]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc