eslint-plugin-graphql
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -91,3 +91,3 @@ 'use strict'; | ||
// Check for single identifier, like 'gql' | ||
if (node.tag.type === 'Identifier' && node.tag.name !== tagName) { | ||
if (node.tag.type !== 'Identifier' || node.tag.name !== tagName) { | ||
return; | ||
@@ -97,5 +97,8 @@ } | ||
// Check for dotted identifier, like 'Relay.QL' | ||
if (node.tag.type === 'MemberExpression' && node.tag.object.name + '.' + node.tag.property.name !== tagName) { | ||
if (node.tag.type !== 'MemberExpression' || node.tag.object.name + '.' + node.tag.property.name !== tagName) { | ||
return; | ||
} | ||
} else { | ||
// We don't currently support 3 segments so ignore | ||
return; | ||
} | ||
@@ -102,0 +105,0 @@ |
{ | ||
"name": "eslint-plugin-graphql", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "GraphQL ESLint plugin.", | ||
@@ -5,0 +5,0 @@ "author": "Sashko Stubailo", |
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
53869
198