Socket
Socket
Sign inDemoInstall

eslint-plugin-strict-dependencies

Package Overview
Dependencies
0
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 1.0.0

7

package.json
{
"name": "eslint-plugin-strict-dependencies",
"description": "ESlint plugin to define custom module dependency rules.",
"version": "0.0.2",
"version": "1.0.0",
"repository": {

@@ -9,3 +9,3 @@ "type": "git",

},
"keywords": [
"keywords": [
"eslint",

@@ -31,3 +31,4 @@ "eslintplugin",

"jest": "^27.2.4",
"micromatch": "^4.0.4"
"micromatch": "^4.0.4",
"require-strip-json-comments": "^2.0.0"
},

@@ -34,0 +35,0 @@ "scripts": {

/* eslint-disable */
const fs = require('fs')
const path = require('path')
const parseJSON = require('require-strip-json-comments')

@@ -16,5 +16,5 @@ /**

try {
const tsConfigFile = fs.readFileSync(path.join(process.cwd(), '/tsconfig.json'), 'utf-8')
const tsConfigFilePath = path.join(process.cwd(), '/tsconfig.json')
// Exists ts config
const tsConfig = JSON.parse(tsConfigFile)
const tsConfig = parseJSON(tsConfigFilePath)
if (tsConfig.compilerOptions && tsConfig.compilerOptions.paths) {

@@ -21,0 +21,0 @@ Object.keys(tsConfig.compilerOptions.paths).forEach((key) => {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc