chore: add 'use strict' to default app sources (#16346)
This commit is contained in:
parent
2ee59cc82c
commit
102d8fe506
5 changed files with 16 additions and 0 deletions
8
default_app/.eslintrc
Normal file
8
default_app/.eslintrc
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parserOptions": {
|
||||
"sourceType": "script"
|
||||
},
|
||||
"rules": {
|
||||
"strict": ["error", "global"]
|
||||
}
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const { app, BrowserWindow } = require('electron')
|
||||
const path = require('path')
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const { app, dialog } = require('electron')
|
||||
|
||||
const fs = require('fs')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const { shell, Menu } = require('electron')
|
||||
|
||||
const isMac = process.platform === 'darwin'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const { remote, shell } = require('electron')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
|
Loading…
Reference in a new issue