Socket
Socket
Sign inDemoInstall

@typescript-eslint/typescript-estree

Package Overview
Dependencies
Maintainers
1
Versions
3811
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/typescript-estree - npm Package Compare versions

Comparing version 1.6.1-alpha.1 to 1.6.1-alpha.2

19

dist/tsconfig-parser.js

@@ -43,2 +43,7 @@ "use strict";

const noopFileWatcher = { close: () => { } };
function getTsconfigPath(tsconfigPath, extra) {
return path_1.default.isAbsolute(tsconfigPath)
? tsconfigPath
: path_1.default.join(extra.tsconfigRootDir || process.cwd(), tsconfigPath);
}
/**

@@ -54,3 +59,2 @@ * Calculate project environments using options provided by consumer and paths from config

const results = [];
const tsconfigRootDir = extra.tsconfigRootDir;
// preserve reference to code and file being linted

@@ -65,7 +69,4 @@ currentLintOperationState.code = code;

}
for (let tsconfigPath of extra.projects) {
// if absolute paths aren't provided, make relative to tsconfigRootDir
if (!path_1.default.isAbsolute(tsconfigPath)) {
tsconfigPath = path_1.default.join(tsconfigRootDir, tsconfigPath);
}
for (let rawTsconfigPath of extra.projects) {
const tsconfigPath = getTsconfigPath(rawTsconfigPath, extra);
const existingWatch = knownWatchProgramMap.get(tsconfigPath);

@@ -145,7 +146,3 @@ if (typeof existingWatch !== 'undefined') {

}
let tsconfigPath = extra.projects[0];
// if absolute paths aren't provided, make relative to tsconfigRootDir
if (!path_1.default.isAbsolute(tsconfigPath)) {
tsconfigPath = path_1.default.join(extra.tsconfigRootDir, tsconfigPath);
}
const tsconfigPath = getTsconfigPath(extra.projects[0], extra);
const commandLine = typescript_1.default.getParsedCommandLineOfConfigFile(tsconfigPath, defaultCompilerOptions, Object.assign({}, typescript_1.default.sys, { onUnRecoverableConfigFileDiagnostic: () => { } }));

@@ -152,0 +149,0 @@ if (!commandLine) {

{
"name": "@typescript-eslint/typescript-estree",
"version": "1.6.1-alpha.1+fab182f",
"version": "1.6.1-alpha.2+6f77ba6",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",

@@ -47,5 +47,5 @@ "main": "dist/parser.js",

"@babel/types": "^7.3.2",
"@typescript-eslint/shared-fixtures": "1.6.1-alpha.1+fab182f"
"@typescript-eslint/shared-fixtures": "1.6.1-alpha.2+6f77ba6"
},
"gitHead": "fab182f9ac91147e465a0ef8f11a6d700336370b"
"gitHead": "6f77ba611354c49252bc16768e55324fb00b0ac6"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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