fix(eslint): apply 'curly' rule

- manually put to newlines

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev
2025-05-23 12:31:15 +02:00
parent 1b3757bfac
commit dcfe2facab
5 changed files with 12 additions and 5 deletions

View File

@ -23,7 +23,6 @@ export default [
'@typescript-eslint/no-unused-expressions': 'off', // non-fixable
'@typescript-eslint/no-unused-vars': 'off', // non-fixable
'@typescript-eslint/no-use-before-define': 'off', // non-fixable
curly: 'off', // adds brackets
eqeqeq: 'off', // non-fixable
'jsdoc/check-param-names': 'off', // need to respect JS
'jsdoc/check-tag-names': 'off', // need to respect JS

View File

@ -160,7 +160,9 @@ export default {
return t('spreed', 'Edit default permissions for participants in <strong>{conversationName}</strong>', {
conversationName: this.conversationName,
})
} else throw Error('you need to fill either the conversationName or the displayName props')
} else {
throw Error('you need to fill either the conversationName or the displayName props')
}
},
permissionsWithDefault() {

View File

@ -259,7 +259,9 @@ export default {
if (peer) {
return !peer.sessionIds.length
} else return false
} else {
return false
}
},
participantsInCall() {

View File

@ -54,7 +54,9 @@ export default function attachmediastream(stream, el, options) {
}
}
if (opts.autoplay) element.autoplay = 'autoplay'
if (opts.autoplay) {
element.autoplay = 'autoplay'
}
element.muted = !!opts.muted
if (!opts.audio) {
['', 'moz', 'webkit', 'o', 'ms'].forEach(function(prefix) {

View File

@ -22,7 +22,9 @@ self.onmessage = (e) => {
makeTFLite(e.data.simd)
break
case 'resizeSource':
if (!self.compiled) return
if (!self.compiled) {
return
}
resizeSource(e.data.imageData, e.data.frameId)
break
case 'runInference':