@scandipwa/eslint-plugin-scandipwa-guidelines
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -109,4 +109,5 @@ /** | ||
const filePath = context.getFilename(); | ||
if (filePath.indexOf('src/app') !== -1) { | ||
const relativeToApp = filePath.slice(filePath.indexOf('src/app') + 'src/app'.length + 1); | ||
if (filePath.indexOf('pwa/src/app') !== -1 || filePath.indexOf('base-theme/src/app') !== -1) { | ||
const pathKey = filePath.indexOf('pwa/src/app') !== -1 ? 'pwa/src/app' : 'base-theme/src/app'; | ||
const relativeToApp = filePath.slice(filePath.indexOf(pathKey) + pathKey.length + 1); | ||
const exploded = relativeToApp.split('/'); | ||
@@ -113,0 +114,0 @@ |
{ | ||
"name": "@scandipwa/eslint-plugin-scandipwa-guidelines", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Eslint rules for ScandiPWA", | ||
@@ -16,2 +16,3 @@ "keywords": [ | ||
"dependencies": { | ||
"eslint-traverse": "^1.0.0", | ||
"requireindex": "~1.1.0" | ||
@@ -18,0 +19,0 @@ }, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
34746
25
844
0
2
+ Addedeslint-traverse@^1.0.0
+ Addedeslint-traverse@1.0.0(transitive)