eslint-plugin-react-native-animation-linter
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -74,3 +74,3 @@ /** | ||
const newState = _getStateUpdate(node); | ||
if (newState) { | ||
if (newState && newState.properties) { | ||
newState.properties.forEach(p => { | ||
@@ -173,3 +173,4 @@ const stateProperty = p.key.name; | ||
currNode.type === "FunctionExpression" && | ||
currNode.parent && currNode.parent.key.name === "getInitialState" | ||
currNode.parent && | ||
currNode.parent.key.name === "getInitialState" | ||
) { | ||
@@ -318,3 +319,4 @@ return node.key.name; | ||
if ( | ||
specifier && specifier.local.name === "Animated" && | ||
specifier && | ||
specifier.local.name === "Animated" && | ||
node.source.value !== "react-native" | ||
@@ -321,0 +323,0 @@ ) { |
{ | ||
"name": "eslint-plugin-react-native-animation-linter", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"author": "askerry", | ||
@@ -5,0 +5,0 @@ "description": "Lint rules to ensure safe management of React Native animations.", |
16817
401