@@ -220,7 +220,7 @@ export class Compass {
220220 // close it and load the logs
221221 [ this . logPath , this . userDataPath , this . appName , this . mainProcessPid ] =
222222 await this . browser . execute ( ( ) => {
223- // eslint-disable-next-line @typescript-eslint/no-var-requires
223+ // eslint-disable-next-line @typescript-eslint/no-require-imports
224224 const { ipcRenderer } = require ( 'electron' ) ;
225225 return Promise . all ( [
226226 ipcRenderer . invoke ( 'compass:logPath' ) ,
@@ -350,7 +350,7 @@ export class Compass {
350350 debug ( 'Writing coverage' ) ;
351351 const coverage : Coverage = await this . browser . executeAsync ( ( done ) => {
352352 void ( async ( ) => {
353- // eslint-disable-next-line @typescript-eslint/no-var-requires
353+ // eslint-disable-next-line @typescript-eslint/no-require-imports
354354 const mainCoverage = await require ( 'electron' ) . ipcRenderer . invoke (
355355 'coverage'
356356 ) ;
@@ -963,6 +963,7 @@ async function getCompassBuildMetadata(): Promise<BinPathOptions> {
963963 packagerOptions : { name : process . env . COMPASS_APP_NAME } ,
964964 } ;
965965 } else {
966+ // eslint-disable-next-line @typescript-eslint/no-require-imports
966967 metadata = require ( 'mongodb-compass/dist/target.json' ) ;
967968 }
968969 // Double-checking that Compass app path exists, not only the metadata
@@ -1097,7 +1098,7 @@ export async function init(
10971098 }
10981099 } else {
10991100 await browser . execute ( ( ) => {
1100- // eslint-disable-next-line @typescript-eslint/no-var-requires
1101+ // eslint-disable-next-line @typescript-eslint/no-require-imports
11011102 const { ipcRenderer } = require ( 'electron' ) ;
11021103 void ipcRenderer . invoke ( 'compass:maximize' ) ;
11031104 } ) ;
0 commit comments