antfu / eslint-config

Anthony's ESLint config preset

Home Page:https://eslint-config.antfu.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSCODE_PID is not present in SSH

kehwar opened this issue · comments

isInEditor = !!((process.env.VSCODE_PID || process.env.JETBRAINS_IDE || process.env.VIM) && !process.env.CI),

VSCODE_PID is not present in SSH, so editor autodetect doesn't work

Using !!process.env.VSCODE_CWD works for me, but I'm not sure is the correct fix for this

Ok, PR welcome :)