@scandipwa/eslint-plugin-scandipwa-guidelines
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -82,6 +82,15 @@ /** | ||
const getNamespaceCommentForNode = (node, sourceCode) => { | ||
const getNamespaceFromComments = (comments = []) => comments.find( | ||
comment => comment.value.includes('@namespace') | ||
); | ||
const getNamespaceFromComments = (comments = []) => { | ||
const comment = comments.find( | ||
comment => comment.value.includes('@namespace') | ||
); | ||
if (!comment) { | ||
return ''; | ||
} | ||
return comment.value.split('@namespace').pop().trim(); | ||
} | ||
return getNamespaceFromComments( | ||
@@ -213,2 +222,5 @@ sourceCode.getCommentsBefore(getProperParentNode(node)) | ||
} else if (generatedNamespace !== namespaceComment) { | ||
console.log('>>>', generatedNamespace); | ||
console.log('>>>', namespaceComment); | ||
context.report({ | ||
@@ -215,0 +227,0 @@ node, |
{ | ||
"name": "@scandipwa/eslint-plugin-scandipwa-guidelines", | ||
"description": "ESLint plugin used by CSA.", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"keywords": [ | ||
@@ -29,3 +29,3 @@ "eslint", | ||
}, | ||
"gitHead": "a261bd1649abb1878aee60329a86568e35fa422d" | ||
"gitHead": "ae3579b5ebbe46b07cc723fd38772ce7388c9461" | ||
} |
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
48109
1251