fix(app): Fix mainWindow reference & lint errors
fix(app): Fix mainWindow reference & lint errors

This fixes some linter errors, and the global reference to `mainWindow`
to prevent unintended window garbage collection

Change-Type: patch

fwrgit/resin-electronjs,fwrgit/resin-electronjs,fwrgit/resin-electronjs