Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scandipwa/eslint-plugin-scandipwa-guidelines

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scandipwa/eslint-plugin-scandipwa-guidelines - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

18

lib/rules/use-namespace.js

@@ -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,

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc