Update linter

This commit is contained in:
Thomas Nordquist
2020-04-16 10:56:46 +02:00
parent 19e8bfdb37
commit 30af13f793
53 changed files with 92 additions and 97 deletions

View File

@@ -15,7 +15,7 @@ interface 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())
})
}