From 62bcc937f08cd18296ffbe96a3551ec1fb87aecd Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 1 Aug 2021 08:20:40 +0800 Subject: [PATCH] fix(typescript-estree): correct tty check (#3635) --- packages/typescript-estree/src/parser.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/typescript-estree/src/parser.ts b/packages/typescript-estree/src/parser.ts index 3701a8862b3..69132424ba2 100644 --- a/packages/typescript-estree/src/parser.ts +++ b/packages/typescript-estree/src/parser.ts @@ -351,7 +351,8 @@ 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 = [