Update linter
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
})),
|
||||
|
||||
@@ -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())
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user