mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
modify: add prefer-const rule and fix code
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": ["standard", "standard-jsx"],
|
"extends": ["standard", "standard-jsx"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-useless-escape": 0
|
"no-useless-escape": 0,
|
||||||
|
"prefer-const": "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ const Config = require('electron-config')
|
|||||||
const config = new Config()
|
const config = new Config()
|
||||||
|
|
||||||
var showMenu = process.platform !== 'win32'
|
var showMenu = process.platform !== 'win32'
|
||||||
let windowSize = config.get('windowsize') || { width: 1080, height: 720 }
|
const windowSize = config.get('windowsize') || { width: 1080, height: 720 }
|
||||||
|
|
||||||
let mainWindow = new BrowserWindow({
|
const mainWindow = new BrowserWindow({
|
||||||
width: windowSize.width,
|
width: windowSize.width,
|
||||||
height: windowSize.height,
|
height: windowSize.height,
|
||||||
minWidth: 500,
|
minWidth: 500,
|
||||||
|
|||||||
Reference in New Issue
Block a user