Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
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 3.11.0 to 3.11.1

7

CHANGELOG.md

@@ -6,2 +6,9 @@ # Change Log

## [3.11.1] - 2015-11-29
### Fixed
* Fix SVG attributes support for `no-unknown-property` ([#338][])
[3.11.1]: https://github.com/yannickcr/eslint-plugin-react/compare/v3.11.0...v3.11.1
[#338]: https://github.com/yannickcr/eslint-plugin-react/issues/338
## [3.11.0] - 2015-11-29

@@ -8,0 +15,0 @@ ### Added

42

lib/rules/no-unknown-property.js

@@ -14,6 +14,32 @@ /**

var DOM_ATTRIBUTE_NAMES = {
// Standard
'accept-charset': 'acceptCharset',
class: 'className',
for: 'htmlFor',
'http-equiv': 'httpEquiv'
'http-equiv': 'httpEquiv',
// SVG
'clip-path': 'clipPath',
'fill-opacity': 'fillOpacity',
'font-family': 'fontFamily',
'font-size': 'fontSize',
'marker-end': 'markerEnd',
'marker-mid': 'markerMid',
'marker-start': 'markerStart',
'stop-color': 'stopColor',
'stop-opacity': 'stopOpacity',
'stroke-dasharray': 'strokeDasharray',
'stroke-linecap': 'strokeLinecap',
'stroke-opacity': 'strokeOpacity',
'stroke-width': 'strokeWidth',
'text-anchor': 'textAnchor',
'xlink:actuate': 'xlinkActuate',
'xlink:arcrole': 'xlinkArcrole',
'xlink:href': 'xlinkHref',
'xlink:role': 'xlinkRole',
'xlink:show': 'xlinkShow',
'xlink:title': 'xlinkTitle',
'xlink:type': 'xlinkType',
'xml:base': 'xmlBase',
'xml:lang': 'xmlLang',
'xml:space': 'xmlSpace'
};

@@ -36,13 +62,3 @@

'autoSave',
'itemProp', 'itemScope', 'itemType', 'itemRef', 'itemID',
// SVG
'clipPath', 'cx', 'cy', 'd', 'dx', 'dy', 'fill', 'fillOpacity', 'fontFamily',
'fontSize', 'fx', 'fy', 'gradientTransform', 'gradientUnits', 'markerEnd',
'markerMid', 'markerStart', 'offset', 'opacity', 'patternContentUnits',
'patternUnits', 'points', 'preserveAspectRatio', 'r', 'rx', 'ry', 'spreadMethod',
'stopColor', 'stopOpacity', 'stroke', 'strokeDasharray', 'strokeLinecap',
'strokeOpacity', 'strokeWidth', 'textAnchor', 'transform', 'version',
'viewBox', 'x1', 'x2', 'x', 'y1', 'y2', 'y',
'xlink:Actuate', 'xlink:Arcrole', 'xlink:Href', 'xlink:Role', 'xlink:Show', 'xlink:Title', 'xlink:Type',
'xml:Base', 'xml:Lang', 'xml:Space'
'itemProp', 'itemScope', 'itemType', 'itemRef', 'itemID'
];

@@ -88,3 +104,3 @@

});
return found ? DOM_PROPERTY_NAMES[i].replace(':', '') : null;
return found ? DOM_PROPERTY_NAMES[i] : null;
}

@@ -91,0 +107,0 @@

{
"name": "eslint-plugin-react",
"version": "3.11.0",
"version": "3.11.1",
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>",

@@ -5,0 +5,0 @@ "description": "React specific linting rules for ESLint",

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