diff --git a/default_app/.eslintrc b/default_app/.eslintrc new file mode 100644 index 000000000000..7f629e4735d8 --- /dev/null +++ b/default_app/.eslintrc @@ -0,0 +1,8 @@ +{ + "parserOptions": { + "sourceType": "script" + }, + "rules": { + "strict": ["error", "global"] + } +} diff --git a/default_app/default_app.js b/default_app/default_app.js index f09e876de6db..5791139465e1 100644 --- a/default_app/default_app.js +++ b/default_app/default_app.js @@ -1,3 +1,5 @@ +'use strict' + const { app, BrowserWindow } = require('electron') const path = require('path') diff --git a/default_app/main.js b/default_app/main.js index 7dc7c847340f..f8a71e347fb7 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -1,3 +1,5 @@ +'use strict' + const { app, dialog } = require('electron') const fs = require('fs') diff --git a/default_app/menu.js b/default_app/menu.js index cc9dd1a324aa..138734b565cb 100644 --- a/default_app/menu.js +++ b/default_app/menu.js @@ -1,3 +1,5 @@ +'use strict' + const { shell, Menu } = require('electron') const isMac = process.platform === 'darwin' diff --git a/default_app/renderer.js b/default_app/renderer.js index b971f9fb16e6..2107d798132c 100644 --- a/default_app/renderer.js +++ b/default_app/renderer.js @@ -1,3 +1,5 @@ +'use strict' + const { remote, shell } = require('electron') const fs = require('fs') const path = require('path')