At the top you can add mainWindow `/*global mainWindow:true` so the lint check passes.