eslint-plugin-reanimated
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -79,7 +79,5 @@ "use strict"; | ||
if (statement && typescript_1.isExpressionStatement(statement)) { | ||
const esNode = parserServices.tsNodeToESTreeNodeMap.get(statement); | ||
if (!esNode) { | ||
throw new Error("ESNode not found: " + statement.getText()); | ||
} | ||
return esNode.directive === "worklet"; | ||
return (statement.expression | ||
.getText() | ||
.substring(1, "worklet".length + 1) === "worklet"); | ||
} | ||
@@ -86,0 +84,0 @@ } |
{ | ||
"name": "eslint-plugin-reanimated", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
9062
175