@typescript-eslint/typescript-estree
Advanced tools
Comparing version 1.6.1-alpha.1 to 1.6.1-alpha.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
384518
5169