File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ module.exports = {
8
8
extends : [
9
9
'plugin:@typescript-eslint/eslint-recommended' ,
10
10
'plugin:@typescript-eslint/recommended' ,
11
- 'prettier' ,
12
- 'prettier/@typescript-eslint' ,
11
+ 'prettier'
13
12
] ,
14
13
root : true ,
15
14
env : {
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export function moveDefaultProjectToStart(
83
83
defaultProjectName : string ,
84
84
defaultLabel : string ,
85
85
) {
86
- let projects : string [ ] = Object . keys ( configuration . projects as { } ) ;
86
+ let projects : string [ ] = configuration . projects != null ? Object . keys ( configuration . projects ) : [ ] ;
87
87
if ( configuration . sourceRoot !== 'src' ) {
88
88
projects = projects . filter (
89
89
( p ) => p !== defaultProjectName . replace ( defaultLabel , '' ) ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function getAllPid(): {
27
27
28
28
return rows
29
29
. map ( function ( row ) {
30
- var parts = row . match ( / \s * ( \d + ) \s * ( \d + ) / ) ;
30
+ const parts = row . match ( / \s * ( \d + ) \s * ( \d + ) / ) ;
31
31
32
32
if ( parts === null ) {
33
33
return null ;
@@ -38,19 +38,19 @@ function getAllPid(): {
38
38
ppid : Number ( parts [ 2 ] ) ,
39
39
} ;
40
40
} )
41
- . filter ( < T extends Object > ( input : null | undefined | T ) : input is T => {
41
+ . filter ( < T > ( input : null | undefined | T ) : input is T => {
42
42
return input != null ;
43
43
} ) ;
44
44
}
45
45
46
46
function getAllChilds ( pid : number ) {
47
47
const allpid = getAllPid ( ) ;
48
48
49
- let ppidHash : {
49
+ const ppidHash : {
50
50
[ key : number ] : number [ ] ;
51
51
} = { } ;
52
52
53
- let result : number [ ] = [ ] ;
53
+ const result : number [ ] = [ ] ;
54
54
55
55
allpid . forEach ( function ( item ) {
56
56
ppidHash [ item . ppid ] = ppidHash [ item . ppid ] || [ ] ;
You can’t perform that action at this time.
0 commit comments