Skip to content

Commit facfdbc

Browse files
author
Benjamin Pasero
authored
Enable full TSLint check in build (microsoft#80191)
* build - run TSLint in our builds * try out tslint
1 parent 1cba911 commit facfdbc

6 files changed

Lines changed: 23 additions & 12 deletions

File tree

build/azure-pipelines/darwin/continuous-build-darwin.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ steps:
2424
yarn gulp electron-x64
2525
displayName: Download Electron
2626
- script: |
27-
yarn gulp hygiene
27+
yarn gulp hygiene --skip-tslint
2828
displayName: Run Hygiene Checks
29+
- script: |
30+
yarn gulp tslint
31+
displayName: Run TSLint Checks
2932
- script: |
3033
yarn monaco-compile-check
3134
displayName: Run Monaco Editor Checks
@@ -46,4 +49,4 @@ steps:
4649
inputs:
4750
testResultsFiles: '*-results.xml'
4851
searchFolder: '$(Build.ArtifactStagingDirectory)/test-results'
49-
condition: succeededOrFailed()
52+
condition: succeededOrFailed()

build/azure-pipelines/linux/continuous-build-linux.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ steps:
3232
yarn gulp electron-x64
3333
displayName: Download Electron
3434
- script: |
35-
yarn gulp hygiene
35+
yarn gulp hygiene --skip-tslint
3636
displayName: Run Hygiene Checks
37+
- script: |
38+
yarn gulp tslint
39+
displayName: Run TSLint Checks
3740
- script: |
3841
yarn monaco-compile-check
3942
displayName: Run Monaco Editor Checks

build/azure-pipelines/product-compile.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ steps:
8787

8888
- script: |
8989
set -e
90-
yarn gulp hygiene
90+
yarn gulp hygiene --skip-tslint
91+
yarn gulp tslint
9192
yarn monaco-compile-check
92-
displayName: Run hygiene checks
93+
displayName: Run hygiene, tslint and monaco compile checks
9394
condition: and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
9495

9596
- script: |

build/azure-pipelines/win32/continuous-build-win32.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ steps:
2626
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
2727
- powershell: |
2828
yarn gulp electron
29-
displayName: Download Electron
30-
- powershell: |
31-
yarn gulp hygiene
29+
- script: |
30+
yarn gulp hygiene --skip-tslint
3231
displayName: Run Hygiene Checks
32+
- script: |
33+
yarn gulp tslint
34+
displayName: Run TSLint Checks
3335
- powershell: |
3436
yarn monaco-compile-check
3537
displayName: Run Monaco Editor Checks

build/gulpfile.hygiene.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,13 @@ function hygiene(some) {
311311
.pipe(filter(copyrightFilter))
312312
.pipe(copyrights);
313313

314-
const typescript = result
314+
let typescript = result
315315
.pipe(filter(tslintHygieneFilter))
316-
.pipe(formatting)
317-
.pipe(tsl);
316+
.pipe(formatting);
317+
318+
if (!process.argv.some(arg => arg === '--skip-tslint')) {
319+
typescript = typescript.pipe(tsl);
320+
}
318321

319322
const javascript = result
320323
.pipe(filter(eslintFilter))

src/vs/workbench/contrib/terminal/common/terminal.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ export interface ITerminalService {
248248
/**
249249
* Creates a raw terminal instance, this should not be used outside of the terminal part.
250250
*/
251-
// tslint:disable-next-line: no-dom-globals
252251
createInstance(container: HTMLElement | undefined, shellLaunchConfig: IShellLaunchConfig): ITerminalInstance;
253252
getInstanceFromId(terminalId: number): ITerminalInstance | undefined;
254253
getInstanceFromIndex(terminalIndex: number): ITerminalInstance;

0 commit comments

Comments
 (0)