File tree 5 files changed +8
-6
lines changed
5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export interface Bus {
27
27
}
28
28
29
29
export let createBus = ( ) : Bus => {
30
- let allSubscribers : { [ index : string ] : Callback [ ] } = { } ;
30
+ let allSubscribers : Record < string , Callback [ ] > = { } ;
31
31
let bus : Bus = {
32
32
signal : ( eventType ) => {
33
33
let subscribers = allSubscribers [ eventType ] ;
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ insert_final_newline = true`,
115
115
116
116
let templateData = {
117
117
library,
118
- // eslint-disable-next-line @typescript-eslint/no-var-requires
118
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
119
119
typescriptAssistantVersion : require ( "../../package.json" ) . version ,
120
120
} ;
121
121
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export let createDependencyInjector = (): (<T>(
42
42
Object . defineProperty ( dependencies , "server" , {
43
43
get : ( ) => {
44
44
if ( ! server ) {
45
- // eslint-disable-next-line @typescript-eslint/no-var-requires
45
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
46
46
server = inject ( require ( "./server" ) . createServer ) ;
47
47
}
48
48
return server ;
Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ yargsModule.command(
148
148
compileLimit : {
149
149
describe : "Limit the number of concurrent compilations" ,
150
150
number : true ,
151
- default : 2
152
- }
151
+ default : 2 ,
152
+ } ,
153
153
} ,
154
154
( yargs ) => {
155
155
inject ( createCICommand )
@@ -158,7 +158,7 @@ yargsModule.command(
158
158
format : yargs . format ,
159
159
coverage : yargs . coverage ,
160
160
disabledProjects : yargs . disable ,
161
- compileLimit : yargs . compileLimit
161
+ compileLimit : yargs . compileLimit ,
162
162
} )
163
163
. then ( failIfUnsuccessful , onFailure ) ;
164
164
}
@@ -254,4 +254,5 @@ yargsModule.command(
254
254
}
255
255
) ;
256
256
257
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
257
258
yargsModule . strict ( ) . argv ;
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ export function createDefaultTaskRunner(): TaskRunner {
90
90
if ( code === 0 || code === null ) {
91
91
resolve ( ) ;
92
92
} else {
93
+ // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
93
94
reject ( `Process exited with code ${ code } ` ) ;
94
95
}
95
96
} ) ;
You can’t perform that action at this time.
0 commit comments