Skip to content

Commit 230f1de

Browse files
committed
chore(index): fix linting errors
1 parent 87ec44c commit 230f1de

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,16 @@ module.exports = (api, options) => {
121121
// Mock data from legacy build
122122
const pages = options.pages || { index: '' }
123123
Object.keys(pages).forEach((page) => {
124-
let pagePath
125124
// Use the filename option and fallback to the key
126-
pagePath = path.parse(pages[page].filename || page)
125+
const pagePath = path.parse(pages[page].filename || page)
127126
pagePath.name = `legacy-assets-${pagePath.name || page}`
128127
pagePath.ext = '.html.json'
129128
// Delete the base so that name/ext is used when formatting
130129
delete pagePath.base
131130
// Make sure parent dir exists
132-
if (pagePath.dir)
131+
if (pagePath.dir) {
133132
fs.ensureDirSync(path.join(bundleOutputDir, pagePath.dir))
133+
}
134134
fs.writeFileSync(
135135
path.join(bundleOutputDir, path.format(pagePath)),
136136
'[]'
@@ -232,7 +232,7 @@ module.exports = (api, options) => {
232232
buildApp()
233233
}
234234
}
235-
function buildApp() {
235+
function buildApp () {
236236
info('Building app with electron-builder:')
237237
// Build the app using electron builder
238238
builder
@@ -429,7 +429,7 @@ module.exports = (api, options) => {
429429
})
430430
}
431431

432-
async function launchElectron() {
432+
async function launchElectron () {
433433
firstBundleCompleted = true
434434
// Don't exit process when electron is killed
435435
if (child) {
@@ -520,7 +520,7 @@ module.exports = (api, options) => {
520520
}
521521
}
522522

523-
function onChildExit() {
523+
function onChildExit () {
524524
process.exit(0)
525525
}
526526
}
@@ -567,7 +567,7 @@ module.exports = (api, options) => {
567567
)
568568
}
569569

570-
function bundleMain({
570+
function bundleMain ({
571571
mode,
572572
api,
573573
args,

0 commit comments

Comments
 (0)