Skip to content

Commit

Permalink
fix(typescript-estree): process.stdout can be undefined (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Feb 19, 2020
1 parent 7452e7d commit 0d8e87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/parser.ts
Expand Up @@ -261,7 +261,7 @@ function applyParserOptionsToExtra(options: TSESTreeOptions): void {

function warnAboutTSVersion(): void {
if (!isRunningSupportedTypeScriptVersion && !warnedAboutTSVersion) {
const isTTY = typeof process === undefined ? false : process.stdout.isTTY;
const isTTY = typeof process === undefined ? false : process.stdout?.isTTY;
if (isTTY) {
const border = '=============';
const versionWarning = [
Expand Down

0 comments on commit 0d8e87e

Please sign in to comment.