eslint-plugin-react-redux
Advanced tools
Comparing version
@@ -19,3 +19,3 @@ 'use strict'; | ||
const arg = body[i].argument; | ||
if (arg.type === 'ArrowFunctionExpression' || arg.type === 'FunctionExpression') { | ||
if (arg && (arg.type === 'ArrowFunctionExpression' || arg.type === 'FunctionExpression')) { | ||
return getReturnNode(arg); | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "eslint-plugin-react-redux", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "Enforcing best practices for react-redux", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"mocha": "^4.0.1", | ||
"semantic-release": "^12.4.1" | ||
"semantic-release": "^17.2.3" | ||
}, | ||
@@ -45,0 +45,0 @@ "peerDependencies": { |
@@ -9,2 +9,5 @@ module.exports = [ | ||
`, | ||
`const mapStateToProps = () => { | ||
return; | ||
};`, | ||
]; |
89191
1.08%49
2.08%2121
0.14%