mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
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:
parent
7ccb4829a3
commit
92024f8de3
10 changed files with 15 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
<template>
|
||||
<NcModal
|
||||
no-close
|
||||
:close-on-click-outside="false"
|
||||
:label-id="dialogHeaderId"
|
||||
size="small">
|
||||
<div class="modal__content">
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
v-if="showModal"
|
||||
ref="modal"
|
||||
:size="isVoiceMessage ? 'small' : 'normal'"
|
||||
:close-on-click-outside="false"
|
||||
:label-id="dialogHeaderId"
|
||||
@close="handleDismiss">
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue