eslint-plugin-react
Advanced tools
Comparing version 3.11.0 to 3.11.1
@@ -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 |
@@ -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", |
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
156651
3603