@@ -92,18 +92,12 @@ const localize = async () => {
9292 }
9393} ;
9494
95- const buildShims = ( ) => buildProject ( "src/shims" ) ;
96- const cleanShims = ( ) => cleanProject ( "src/shims" ) ;
97- cleanTasks . push ( cleanShims ) ;
98-
9995const buildDebugTools = ( ) => buildProject ( "src/debug" ) ;
10096const cleanDebugTools = ( ) => cleanProject ( "src/debug" ) ;
10197cleanTasks . push ( cleanDebugTools ) ;
10298
103- const buildShimsAndTools = parallel ( buildShims , buildDebugTools ) ;
104-
10599// Pre-build steps when targeting the LKG compiler
106- const lkgPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildShimsAndTools ) ) ;
100+ const lkgPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildDebugTools ) ) ;
107101
108102const buildTsc = ( ) => buildProject ( "src/tsc" ) ;
109103task ( "tsc" , series ( lkgPreBuild , buildTsc ) ) ;
@@ -119,7 +113,7 @@ task("watch-tsc", series(lkgPreBuild, parallel(watchLib, watchDiagnostics, watch
119113task ( "watch-tsc" ) . description = "Watch for changes and rebuild the command-line compiler only." ;
120114
121115// Pre-build steps when targeting the built/local compiler.
122- const localPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildShimsAndTools , buildTsc ) ) ;
116+ const localPreBuild = parallel ( generateLibs , series ( buildScripts , generateDiagnostics , buildDebugTools , buildTsc ) ) ;
123117
124118// Pre-build steps to use based on supplied options.
125119const preBuild = cmdLineOptions . lkg ? lkgPreBuild : localPreBuild ;
@@ -356,15 +350,13 @@ task("run-eslint-rules-tests").description = "Runs the eslint rule tests";
356350
357351/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
358352const eslint = ( folder ) => async ( ) => {
359-
360353 const formatter = cmdLineOptions . ci ? "stylish" : "autolinkable-stylish" ;
361354 const args = [
362355 "node_modules/eslint/bin/eslint" ,
363356 "--cache" ,
364357 "--cache-location" , `${ folder } /.eslintcache` ,
365358 "--format" , formatter ,
366359 "--rulesdir" , "scripts/eslint/built/rules" ,
367- "--ext" , ".ts" ,
368360 ] ;
369361
370362 if ( cmdLineOptions . fix ) {
@@ -377,22 +369,12 @@ const eslint = (folder) => async () => {
377369 return exec ( process . execPath , args ) ;
378370} ;
379371
380- const lintScripts = eslint ( "scripts" ) ;
381- lintScripts . displayName = "lint-scripts" ;
382- task ( "lint-scripts" , series ( [ buildEslintRules , lintScripts ] ) ) ;
383- task ( "lint-scripts" ) . description = "Runs eslint on the scripts sources." ;
384-
385- const lintCompiler = eslint ( "src" ) ;
386- lintCompiler . displayName = "lint-compiler" ;
387- task ( "lint-compiler" , series ( [ buildEslintRules , lintCompiler ] ) ) ;
388- task ( "lint-compiler" ) . description = "Runs eslint on the compiler sources." ;
389- task ( "lint-compiler" ) . flags = {
390- " --ci" : "Runs eslint additional rules" ,
391- } ;
372+ const lintRoot = eslint ( "." ) ;
373+ lintRoot . displayName = "lint" ;
392374
393- const lint = series ( [ buildEslintRules , lintScripts , lintCompiler ] ) ;
375+ const lint = series ( [ buildEslintRules , lintRoot ] ) ;
394376lint . displayName = "lint" ;
395- task ( "lint" , series ( [ buildEslintRules , lint ] ) ) ;
377+ task ( "lint" , lint ) ;
396378task ( "lint" ) . description = "Runs eslint on the compiler and scripts sources." ;
397379task ( "lint" ) . flags = {
398380 " --ci" : "Runs eslint additional rules" ,
0 commit comments