Add typescript-eslint-language-service (#30015)

Этот коммит содержится в:
Julien Tant
2025-02-04 15:29:29 -07:00
коммит произвёл GitHub
родитель 86aad9d0a5
Коммит 1b29abd857
4 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@@ -26,7 +26,10 @@
"paths": {
"mattermost-redux/*": ["packages/mattermost-redux/src/*"],
"@mui/styled-engine": ["./node_modules/@mui/styled-engine-sc"],
}
},
"plugins": [{
"name": "typescript-eslint-language-service"
}]
},
"include": [
"./src/**/*",

Просмотреть файл

@@ -18,10 +18,14 @@ const packageJson = require('./package.json');
const NPM_TARGET = process.env.npm_lifecycle_event;
// list of known code editors that set an environment variable.
const knownCodeEditors = ['VSCODE_CWD', 'INSIDE_EMACS'];
const isInsideCodeEditor = knownCodeEditors.some((editor) => process.env[editor]);
const targetIsRun = NPM_TARGET?.startsWith('run');
const targetIsStats = NPM_TARGET === 'stats';
const targetIsDevServer = NPM_TARGET?.startsWith('dev-server');
const targetIsEslint = NPM_TARGET?.startsWith('check') || NPM_TARGET === 'fix' || process.env.VSCODE_CWD;
const targetIsEslint = NPM_TARGET?.startsWith('check') || NPM_TARGET === 'fix' || isInsideCodeEditor;
const DEV = targetIsRun || targetIsStats || targetIsDevServer;