You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-path

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-path - npm Package Compare versions

Comparing version

to
1.2.0-beta.0

8

lib/utils/helpers.js
"use strict";
const { join } = require("path");
const { existsSync, readFileSync } = require("fs");
const { loadTsConfig } = require("load-tsconfig");
const { existsSync } = require("fs");

@@ -32,6 +33,5 @@ /**

const path = join(dir, filename);
const file = readFileSync(path, "utf-8");
const result = JSON.parse(file);
const file = loadTsConfig(path);
return result;
return file;
} catch (error) {

@@ -38,0 +38,0 @@ throw new Error(`'${filename}' is invalid. Please, validate JSON file.`);

{
"name": "eslint-plugin-path",
"version": "1.1.3",
"version": "1.2.0-beta.0",
"main": "lib/index.js",

@@ -25,2 +25,3 @@ "author": "qDanik <qdanik@yandex.ru>",

},
"type": "commonjs",
"packageManager": "npm@8.1.4",

@@ -34,8 +35,8 @@ "repository": "qDanik/eslint-plugin-path",

"devDependencies": {
"@babel/eslint-parser": "^7.16.3",
"eslint": "^8.2.0",
"eslint-plugin-eslint-plugin": "^4.0.2",
"@babel/eslint-parser": "^7.22.6",
"eslint": "^8.44.0",
"eslint-plugin-eslint-plugin": "^5.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.4.1"
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8"
},

@@ -47,3 +48,6 @@ "peerDependencies": {

"docs": "docs"
},
"dependencies": {
"load-tsconfig": "^0.2.5"
}
}