Skip to content

Commit

Permalink
fix(typescript-estree): correct tty check (#3635)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Aug 1, 2021
1 parent 02998ea commit 62bcc93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/typescript-estree/src/parser.ts
Expand Up @@ -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 = [
Expand Down

0 comments on commit 62bcc93

Please sign in to comment.