eslint-plugin-react-redux
Advanced tools
Comparing version
@@ -42,3 +42,5 @@ const utils = require('../utils'); | ||
FunctionDeclaration(node) { | ||
checkFunction(context, node.body, getFirstParamName(node)); | ||
if (node.id && node.id.name === 'mapStateToProps') { | ||
checkFunction(context, node.body, getFirstParamName(node)); | ||
} | ||
}, | ||
@@ -45,0 +47,0 @@ CallExpression(node) { |
{ | ||
"name": "eslint-plugin-react-redux", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Enforcing best practices for react-redux", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -18,2 +18,3 @@ require('babel-eslint'); | ||
valid: [ | ||
'export default function observeStore(store) {return store;}', | ||
'export default connect(() => {})(Alert)', | ||
@@ -20,0 +21,0 @@ 'export default connect(() => {})(Alert)', |
27926
0.49%640
0.47%