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 1.8.0 to 1.8.1

17

lib/rules/create-config-files.js

@@ -18,2 +18,7 @@ /**

const prohibitedInPostfixes = [
'container',
'component'
];
module.exports = {

@@ -31,3 +36,15 @@ meta: {

Program(node) {
const filePath = context.getFilename();
const exploded = filePath.split('/');
const [fileName, postfix] = exploded[exploded.length - 1].split('.');
/**
* Skip all non "component" and "container" files
*/
if (!prohibitedInPostfixes.includes(postfix)) {
return;
}
const { body } = node;
body.forEach((declarationOrExport) => {

@@ -34,0 +51,0 @@ const declaration = extractDeclaration(declarationOrExport);

2

package.json
{
"name": "@scandipwa/eslint-plugin-scandipwa-guidelines",
"version": "1.8.0",
"version": "1.8.1",
"description": "Eslint rules for ScandiPWA",

@@ -5,0 +5,0 @@ "keywords": [

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