mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Migrate eslint to v9
This commit is contained in:
parent
bad8ea2c2e
commit
034e1bf328
106 changed files with 2130 additions and 1445 deletions
|
@ -208,7 +208,6 @@ function parseSemVersion (s: string) {
|
|||
function execShell (command: string, options?: ExecOptions) {
|
||||
return new Promise<{ err?: Error, stdout: string, stderr: string }>((res, rej) => {
|
||||
exec(command, options, (err, stdout, stderr) => {
|
||||
// eslint-disable-next-line prefer-promise-reject-errors
|
||||
if (err) return rej({ err, stdout, stderr })
|
||||
|
||||
return res({ stdout, stderr })
|
||||
|
@ -274,25 +273,17 @@ const pipelinePromise = promisify(pipeline)
|
|||
export {
|
||||
objectConverter,
|
||||
mapToJSON,
|
||||
|
||||
sanitizeUrl,
|
||||
sanitizeHost,
|
||||
|
||||
execShell,
|
||||
|
||||
pageToStartAndCount,
|
||||
peertubeTruncate,
|
||||
|
||||
scryptPromise,
|
||||
|
||||
randomBytesPromise,
|
||||
|
||||
generateRSAKeyPairPromise,
|
||||
generateED25519KeyPairPromise,
|
||||
|
||||
execPromise2,
|
||||
execPromise,
|
||||
pipelinePromise,
|
||||
|
||||
parseSemVersion
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue