eslint-plugin-path
Advanced tools
Comparing version 1.1.3 to 1.2.0-beta.0
"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" | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14781
2
1
+ Addedload-tsconfig@^0.2.5
+ Addedload-tsconfig@0.2.5(transitive)