Update prettier

This commit is contained in:
Thomas Nordquist
2020-04-15 23:54:30 +02:00
parent fbfbe94d19
commit 237c718a0a
76 changed files with 130 additions and 257 deletions

View File

@@ -13,9 +13,9 @@ interface Context {
targets: [Target]
}
export default async function(context: Context) {
export default async function (context: Context) {
console.log(context)
const isLinux = context.targets.find(target => target.name === 'appImage')
const isLinux = context.targets.find((target) => target.name === 'appImage')
if (!isLinux) {
return
}

View File

@@ -40,8 +40,8 @@ class TransitionBuilder {
public buildOptions(outputFile: string) {
return {
output: outputFile,
videos: this.scenes.map(s => `${s}.mp4`),
transitions: this.transitions.map(name => ({
videos: this.scenes.map((s) => `${s}.mp4`),
transitions: this.transitions.map((name) => ({
name: name !== 'none' ? name : 'fade',
duration: name !== 'none' ? 1000 : 10,
})),

View File

@@ -23,7 +23,7 @@ function redirectOutputFor(child: ChildProcess) {
}
async function waitFor(child: ChildProcess) {
return new Promise(resolve => {
return new Promise((resolve) => {
child.once('close', () => resolve())
})
}