@@ -350,7 +350,6 @@ task("run-eslint-rules-tests").description = "Runs the eslint rule tests";
350
350
351
351
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
352
352
const eslint = ( folder ) => async ( ) => {
353
-
354
353
const formatter = cmdLineOptions . ci ? "stylish" : "autolinkable-stylish" ;
355
354
const args = [
356
355
"node_modules/eslint/bin/eslint" ,
@@ -370,22 +369,12 @@ const eslint = (folder) => async () => {
370
369
return exec ( process . execPath , args ) ;
371
370
} ;
372
371
373
- const lintScripts = eslint ( "scripts" ) ;
374
- lintScripts . displayName = "lint-scripts" ;
375
- task ( "lint-scripts" , series ( [ buildEslintRules , lintScripts ] ) ) ;
376
- task ( "lint-scripts" ) . description = "Runs eslint on the scripts sources." ;
377
-
378
- const lintCompiler = eslint ( "src" ) ;
379
- lintCompiler . displayName = "lint-compiler" ;
380
- task ( "lint-compiler" , series ( [ buildEslintRules , lintCompiler ] ) ) ;
381
- task ( "lint-compiler" ) . description = "Runs eslint on the compiler sources." ;
382
- task ( "lint-compiler" ) . flags = {
383
- " --ci" : "Runs eslint additional rules" ,
384
- } ;
372
+ const lintRoot = eslint ( "." ) ;
373
+ lintRoot . displayName = "lint" ;
385
374
386
- const lint = series ( [ buildEslintRules , lintScripts , lintCompiler ] ) ;
375
+ const lint = series ( [ buildEslintRules , lintRoot ] ) ;
387
376
lint . displayName = "lint" ;
388
- task ( "lint" , series ( [ buildEslintRules , lint ] ) ) ;
377
+ task ( "lint" , lint ) ;
389
378
task ( "lint" ) . description = "Runs eslint on the compiler and scripts sources." ;
390
379
task ( "lint" ) . flags = {
391
380
" --ci" : "Runs eslint additional rules" ,
0 commit comments