Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ export default [
'no-mixed-spaces-and-tabs': 'off',
'no-unexpected-multiline': 'off',
'no-return-await': 'error',
'no-useless-assignment': 'off',
'preserve-caught-error': 'off',
'require-atomic-updates': 'off',
'unicorn/filename-case': 'off',
'unicorn/no-immediate-mutation': 'off',
'unicorn/prevent-abbreviations': 'off'
}
}
Expand Down
1 change: 0 additions & 1 deletion lib/safari/safariInspectorClient.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global WebSocket */
import { execa } from 'execa';
import { getLogger } from '@sitespeed.io/log';

Expand Down
6 changes: 2 additions & 4 deletions lib/support/browserScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ async function findAndParseScripts(root, category) {
const categoryName = path.basename(dirPath);

return scriptsFromDirectory(dirPath).then(scripts => {
const categories = {};
categories[categoryName] = scripts;
const categories = { [categoryName]: scripts };
return categories;
});
}
Expand All @@ -154,8 +153,7 @@ async function findAndParseScripts(root, category) {
let scripts = {};

scripts[name] = generateScriptObject(name, root, content);
let categories = {};
categories[category] = scripts;
let categories = { [category]: scripts };

return categories;
})
Expand Down
2 changes: 1 addition & 1 deletion lib/video/postprocessing/finetune/addTextToVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function addTextToVideo(

arguments_.push(
'-vf',
`drawtext=${fontFile}x=w/2-(tw/2): y=H-h/10:fontcolor=white:fontsize=h/${fontSize}:box=1:boxcolor=0x000000AA:text='%{pts\\:hms}'${allTimingMetrics}`,
String.raw`drawtext=${fontFile}x=w/2-(tw/2): y=H-h/10:fontcolor=white:fontsize=h/${fontSize}:box=1:boxcolor=0x000000AA:text='%{pts\:hms}'${allTimingMetrics}`,
'-y',
outputFile
);
Expand Down
Loading
Loading