eslint-plugin-factorial
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "eslint-plugin-factorial", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -62,3 +62,10 @@ const path = require('path') | ||
const value = node.source.value | ||
if (value && value.includes('store/collections')) { | ||
const validImport = node.importKind !== 'type' | ||
const validSource = value && value.includes('store/collections') | ||
const validSpecifier = node.specifiers.filter((specifier) => { | ||
return specifier.importKind === 'value' | ||
}).length > 0 | ||
if (validImport && validSource && validSpecifier) { | ||
if (!allowedCollections.includes(value)) { | ||
@@ -65,0 +72,0 @@ reportWarning(node) |
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
12476
13
310