eslint-plugin-react
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -6,2 +6,9 @@ # Change Log | ||
## [3.4.1] - 2015-09-17 | ||
### Fixed | ||
* Fix `jsx-quotes` rule deprecation message ([#220][]) | ||
[3.4.1]: https://github.com/yannickcr/eslint-plugin-react/compare/v3.4.0...v3.4.1 | ||
[#220]: https://github.com/yannickcr/eslint-plugin-react/issues/220 | ||
## [3.4.0] - 2015-09-16 | ||
@@ -8,0 +15,0 @@ ### Added |
@@ -26,2 +26,4 @@ /** | ||
var isWarnedForDeprecation = false; | ||
// ------------------------------------------------------------------------------ | ||
@@ -46,4 +48,10 @@ // Rule Definition | ||
Program: function(node) { | ||
context.report(node, 'The react/jsx-quotes rule is deprecated. Please use the jsx-quotes rule instead.'); | ||
Program: function() { | ||
if (isWarnedForDeprecation) { | ||
return; | ||
} | ||
/* eslint-disable no-console */ | ||
console.log('The react/jsx-quotes rule is deprecated. Please use the jsx-quotes rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
}, | ||
@@ -50,0 +58,0 @@ |
{ | ||
"name": "eslint-plugin-react", | ||
"version": "3.4.0", | ||
"version": "3.4.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
121739
2851