eslint-plugin-strict-dependencies
Advanced tools
Comparing version 0.0.2 to 1.0.0
{ | ||
"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) => { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8001
1
0
4