fix(eslint): apply '@stylistic/implicit-arrow-linebreak' rule

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev
2025-05-23 13:35:59 +02:00
parent 49957ae0af
commit 20d3960b78
6 changed files with 7 additions and 15 deletions

View File

@ -16,7 +16,6 @@ export default [
rules: { rules: {
'@nextcloud-l10n/non-breaking-space': 'off', // changes translation strings '@nextcloud-l10n/non-breaking-space': 'off', // changes translation strings
'@stylistic/array-bracket-newline': 'off', // changes array formatting '@stylistic/array-bracket-newline': 'off', // changes array formatting
'@stylistic/implicit-arrow-linebreak': 'off', // weird formatting
'@stylistic/max-statements-per-line': 'off', // non-fixable '@stylistic/max-statements-per-line': 'off', // non-fixable
'@typescript-eslint/no-unused-expressions': 'off', // non-fixable '@typescript-eslint/no-unused-expressions': 'off', // non-fixable
'@typescript-eslint/no-unused-vars': 'off', // non-fixable '@typescript-eslint/no-unused-vars': 'off', // non-fixable

View File

@ -79,8 +79,7 @@ const searchResultsVirtual = computed(() => {
const virtualList = [] const virtualList = []
const lowerSearchText = props.searchText.toLowerCase() const lowerSearchText = props.searchText.toLowerCase()
const searchResultsConversationList = props.conversationsList.filter((conversation) => const searchResultsConversationList = props.conversationsList.filter((conversation) => conversation.displayName.toLowerCase().includes(lowerSearchText)
conversation.displayName.toLowerCase().includes(lowerSearchText)
|| conversation.name.toLowerCase().includes(lowerSearchText)) || conversation.name.toLowerCase().includes(lowerSearchText))
// Add conversations section // Add conversations section

View File

@ -156,8 +156,7 @@ export default {
emits: ['dial:type', 'update:value', 'submit'], emits: ['dial:type', 'update:value', 'submit'],
setup(props) { setup(props) {
const options = Object.values(regionCodes).map((region) => const options = Object.values(regionCodes).map((region) => ({ ...region, dial_and_name: region.dial_code + ' ' + region.name }))
({ ...region, dial_and_name: region.dial_code + ' ' + region.name }))
const buttons = props.dialing const buttons = props.dialing
? buttonsDigits.concat(buttonsDialOption) ? buttonsDigits.concat(buttonsDialOption)

View File

@ -216,8 +216,7 @@ export function useConversationInfo({
return item.value.readOnly === CONVERSATION.STATE.READ_ONLY return item.value.readOnly === CONVERSATION.STATE.READ_ONLY
}) })
const isConversationModifiable = computed(() => const isConversationModifiable = computed(() => !isConversationReadOnly.value
!isConversationReadOnly.value
&& item.value.participantType !== PARTICIPANT.TYPE.GUEST && item.value.participantType !== PARTICIPANT.TYPE.GUEST
&& item.value.participantType !== PARTICIPANT.TYPE.GUEST_MODERATOR) && item.value.participantType !== PARTICIPANT.TYPE.GUEST_MODERATOR)

View File

@ -55,11 +55,9 @@ export function useMessageInfo(message = ref({})) {
const isObjectShare = computed(() => Object.keys(Object(message.value.messageParameters)).some((key) => key.startsWith('object'))) const isObjectShare = computed(() => Object.keys(Object(message.value.messageParameters)).some((key) => key.startsWith('object')))
const isCurrentUserOwnMessage = computed(() => const isCurrentUserOwnMessage = computed(() => message.value.actorId === currentActorId
message.value.actorId === currentActorId
&& message.value.actorType === currentActorType) && message.value.actorType === currentActorType)
const isBotInOneToOne = computed(() => const isBotInOneToOne = computed(() => message.value.actorId.startsWith(ATTENDEE.BOT_PREFIX)
message.value.actorId.startsWith(ATTENDEE.BOT_PREFIX)
&& message.value.actorType === ATTENDEE.ACTOR_TYPE.BOTS && message.value.actorType === ATTENDEE.ACTOR_TYPE.BOTS
&& (conversation.value.type === CONVERSATION.TYPE.ONE_TO_ONE && (conversation.value.type === CONVERSATION.TYPE.ONE_TO_ONE
|| conversation.value.type === CONVERSATION.TYPE.ONE_TO_ONE_FORMER)) || conversation.value.type === CONVERSATION.TYPE.ONE_TO_ONE_FORMER))
@ -83,8 +81,7 @@ export function useMessageInfo(message = ref({})) {
const isFileShareWithoutCaption = computed(() => message.value.message === '{file}' && isFileShare.value) const isFileShareWithoutCaption = computed(() => message.value.message === '{file}' && isFileShare.value)
const isDeleteable = computed(() => const isDeleteable = computed(() => (hasTalkFeature(message.value.token, 'delete-messages-unlimited') || (Date.now() - message.value.timestamp * 1000 < 6 * ONE_HOUR_IN_MS))
(hasTalkFeature(message.value.token, 'delete-messages-unlimited') || (Date.now() - message.value.timestamp * 1000 < 6 * ONE_HOUR_IN_MS))
&& (message.value.messageType === 'comment' || message.value.messageType === 'voice-message') && (message.value.messageType === 'comment' || message.value.messageType === 'voice-message')
&& (isCurrentUserOwnMessage.value || (!isOneToOneConversation.value && store.getters.isModerator)) && (isCurrentUserOwnMessage.value || (!isOneToOneConversation.value && store.getters.isModerator))
&& isConversationModifiable.value) && isConversationModifiable.value)

View File

@ -98,8 +98,7 @@ export default (function() {
* source * source
*/ */
function disconnectTrackSource(inputTrackId, trackSource, outputTrackId = 'default') { function disconnectTrackSource(inputTrackId, trackSource, outputTrackId = 'default') {
const connectedTrackSourceIndex = this._connectedTrackSources.findIndex((connected) => const connectedTrackSourceIndex = this._connectedTrackSources.findIndex((connected) => connected.trackSource === trackSource
connected.trackSource === trackSource
&& connected.outputTrackId === outputTrackId && connected.outputTrackId === outputTrackId
&& connected.inputTrackId === inputTrackId) && connected.inputTrackId === inputTrackId)
if (connectedTrackSourceIndex === -1) { if (connectedTrackSourceIndex === -1) {