15
15
import * as fs from 'node:fs' ;
16
16
import * as git from './git' ;
17
17
import * as path from 'path' ;
18
- import { List , Map , Set } from 'immutable' ;
19
- import { minimatch } from 'minimatch' ; /* eslint-disable @typescript-eslint/no-explicit-any */
20
- import { Affected , TestAll , TestName , TestPath , mergeAffected } from './affected' ;
18
+ import { List , Map , Set } from 'immutable' ;
19
+ import { minimatch } from 'minimatch' ; /* eslint-disable @typescript-eslint/no-explicit-any */
20
+ import { Affected , TestAll , TestName , TestPath , mergeAffected } from './affected' ;
21
21
22
22
type Args = {
23
23
root : string ;
@@ -58,9 +58,9 @@ export class Config {
58
58
this . match = List ( match || [ '**' ] ) ;
59
59
this . ignore = List ( ignore ) ;
60
60
this . packageFile = List ( packageFile ) ;
61
- this . _lint = lint || ( _ => { } ) ;
62
- this . _testAll = testAll || ( _ => { } ) ;
63
- this . _testSome = testSome || ( _ => { } ) ;
61
+ this . _lint = lint || ( _ => { } ) ;
62
+ this . _testAll = testAll || ( _ => { } ) ;
63
+ this . _testSome = testSome || ( _ => { } ) ;
64
64
}
65
65
66
66
affected = ( head : string , main : string ) : List < Affected > =>
@@ -81,7 +81,7 @@ export class Config {
81
81
const dir = path . join ( root , affected . path ) ;
82
82
console . log ( `> cd ${ dir } ` ) ;
83
83
process . chdir ( dir ) ;
84
- this . _lint ( { root : root , path : affected . path } ) ;
84
+ this . _lint ( { root : root , path : affected . path } ) ;
85
85
process . chdir ( cwd ) ;
86
86
} ;
87
87
@@ -92,7 +92,7 @@ export class Config {
92
92
console . log ( `> cd ${ dir } ` ) ;
93
93
process . chdir ( dir ) ;
94
94
if ( 'TestAll' in affected ) {
95
- this . _testAll ( { root : root , path : affected . path } ) ;
95
+ this . _testAll ( { root : root , path : affected . path } ) ;
96
96
}
97
97
if ( 'TestSome' in affected ) {
98
98
this . _testSome ( {
0 commit comments