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

eslint-plugin-import-typescript

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-import-typescript - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

index.js

@@ -5,2 +5,3 @@ "use strict";

const path = require("path");
const jsonParser = require("jsonc-parser");

@@ -47,4 +48,4 @@ function has(map, path) {

if (fs.existsSync(path.join(baseDir, "tsconfig.json"))) {
const tsconfig = JSON.parse(
fs.readFileSync(path.join(baseDir, "tsconfig.json"))
const tsconfig = jsonParser.parse(
fs.readFileSync(path.join(baseDir, "tsconfig.json")).toString()
);

@@ -58,4 +59,4 @@ if (has(tsconfig, "compilerOptions.baseUrl")) {

} else if (fs.existsSync(path.join(baseDir, "jsconfig.json"))) {
const jsconfig = JSON.parse(
fs.readFileSync(path.join(baseDir, "jsconfig.json"))
const jsconfig = jsonParser.parse(
fs.readFileSync(path.join(baseDir, "jsconfig.json")).toString()
);

@@ -62,0 +63,0 @@ if (has(jsconfig, "compilerOptions.baseUrl")) {

{
"name": "eslint-plugin-import-typescript",
"version": "0.0.3",
"version": "0.0.4",
"main": "index.js",
"dependencies": {},
"dependencies": {
"jsonc-parser": "^3.2.0"
},
"description": "Eslint rule enforcing supporting typescript absolute imports and paths",

@@ -7,0 +9,0 @@ "license": "MIT",

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