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

eslint-plugin-pagecall-test

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-pagecall-test - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

3

package.json
{
"name": "eslint-plugin-pagecall-test",
"version": "1.0.4",
"version": "1.0.5",
"main": "./dist/index.js",
"dependencies": {
"@typescript-eslint/experimental-utils": "^4.31.2",
"path": "^0.12.7",
"requireindex": "^1.2.0"

@@ -9,0 +8,0 @@ },

import { ESLintUtils } from '@typescript-eslint/experimental-utils';
import path from 'path';
function parseFilename(filename: string) {
var ext = path.extname(filename);
return {
dir: path.dirname(filename),
base: path.basename(filename),
ext: ext,
name: path.basename(filename, ext),
};
}
const rule = ESLintUtils.RuleCreator(str => 'temp')({

@@ -18,4 +29,8 @@ defaultOptions: [],

create: context => {
const fileName = (context as any).getPhysicalFilename();
if (!fileName.includes('states/stores')) return {};
const root = context.options[1];
const filename = context.getFilename();
const absoluteFilename = path.resolve(filename);
const parsed = parseFilename(absoluteFilename);
const [, relativePath] = parsed.dir.split(root);
if (relativePath.includes(`states\/stores`)) return {};
return {

@@ -22,0 +37,0 @@ Identifier: node => {

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