fix: lint code

- disable new jsdoc rules
- wrap some jsdoc inline tags
- cleanup redundant close-on-click-outside

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev 2025-11-29 15:45:17 +01:00
parent 7ccb4829a3
commit 92024f8de3
10 changed files with 15 additions and 13 deletions

View file

@ -44,8 +44,13 @@ 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
'jsdoc/check-tag-names': 'off', // need to respect JS
'jsdoc/reject-function-type': 'off', // need to respect JS
'jsdoc/reject-any-type': 'off', // need to respect JS
'jsdoc/require-function-type': 'off', // need to respect JS
'jsdoc/require-param-type': 'off', // need to respect JS
'jsdoc/require-param-description': 'off', // need to respect JS
'jsdoc/require-throws-type': 'off', // need to respect JS
'no-console': 'off', // non-fixable
'no-unused-vars': 'off', // non-fixable
'no-use-before-define': 'off', // non-fixable

View file

@ -74,8 +74,7 @@ async function extendOneToOneConversation() {
<template>
<NcPopover
:container="container"
popup-role="dialog"
close-on-click-outside>
popup-role="dialog">
<template #trigger>
<NcButton
variant="tertiary"

View file

@ -6,7 +6,6 @@
<template>
<NcModal
no-close
:close-on-click-outside="false"
:label-id="dialogHeaderId"
size="small">
<div class="modal__content">

View file

@ -8,7 +8,6 @@
v-if="showModal"
ref="modal"
:size="isVoiceMessage ? 'small' : 'normal'"
:close-on-click-outside="false"
:label-id="dialogHeaderId"
@close="handleDismiss">
<div

View file

@ -111,7 +111,7 @@ EventBus.once('joined-conversation', () => {
}
})
/** Update guest displayName from public event (e.g. @nextcloud/auth) */
/** Update guest displayName from public event (e.g. `@nextcloud/auth`) */
subscribe('user:info:changed', updateDisplayNameFromPublicEvent)
onBeforeUnmount(() => {
unsubscribe('user:info:changed', updateDisplayNameFromPublicEvent)

View file

@ -375,7 +375,7 @@ async function changeListable(token: string, scope: setConversationListableParam
}
/**
* Set mention permissions to allow or disallow mentioning @all for non-moderators
* Set mention permissions to allow or disallow mentioning `@all` for non-moderators
*
* @param token The token of the conversation to be modified
* @param mentionPermissions The mention permissions to set

View file

@ -99,7 +99,7 @@ export const useActorStore = defineStore('actor', () => {
/**
* Set the actor from the current user
*
* @param user A NextcloudUser object as returned by @nextcloud/auth
* @param user A NextcloudUser object as returned by `@nextcloud/auth`
* @param user.uid The user id of the user
* @param user.displayName The display name of the user
*/

View file

@ -217,8 +217,8 @@ export class Context {
async _decryptFrame(
encodedFrame,
keyIndex,
initialKey = undefined,
ratchetCount = 0,
initialKey = undefined,
ratchetCount = 0,
) {
const { encryptionKey } = this._cryptoKeyRing[keyIndex]
let { material } = this._cryptoKeyRing[keyIndex]

View file

@ -10,7 +10,7 @@ import { t } from '@nextcloud/l10n'
import { generateUrl, getBaseUrl } from '@nextcloud/router'
/**
* Generate a full absolute link with @nextcloud/router.generateUrl
* Generate a full absolute link with `@nextcloud/router` generateUrl()
*
* @param url - path
* @param params - parameters to be replaced into the address

View file

@ -61,9 +61,9 @@ export default function SimpleWebRTC(opts) {
// Note that this is a coarse check; calling "getScreenMedia" may fail even
// if "supportScreenSharing" is true.
const screenSharingSupported
= (window.navigator.mediaDevices && window.navigator.mediaDevices.getDisplayMedia)
|| (window.navigator.webkitGetUserMedia)
|| (window.navigator.userAgent.match('Firefox'))
= (window.navigator.mediaDevices && window.navigator.mediaDevices.getDisplayMedia)
|| (window.navigator.webkitGetUserMedia)
|| (window.navigator.userAgent.match('Firefox'))
webrtcSupport.supportScreenSharing = window.location.protocol === 'https:' && screenSharingSupported
// attach detected support for convenience