fix(eslint): auto-fix 'jsdoc/no-defaults'

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev 2025-09-01 13:54:43 +02:00
parent 6f9b5b7a67
commit 50a558dc02
8 changed files with 20 additions and 21 deletions

View file

@ -49,7 +49,6 @@ export default [
'jsdoc/check-param-names': 'off', // need to respect JS
'jsdoc/check-tag-names': 'off', // need to respect JS
'jsdoc/check-types': 'off', // need to respect JS
'jsdoc/no-defaults': 'off', // need to respect JS
'jsdoc/no-types': 'off', // need to respect JS
'jsdoc/require-param': 'off', // need to respect JS
'jsdoc/require-param-type': 'off', // need to respect JS

View file

@ -160,7 +160,7 @@ type SearchMessageCancelableRequest = {
}
/**
* @param [isNew=true] Is it a new search (search parameters changed)?
* @param [isNew] Is it a new search (search parameters changed)?
* Fetch the search results from the server
*/
async function fetchSearchResults(isNew = true): Promise<void> {

View file

@ -22,7 +22,7 @@ const focusableCondition = 'a, button, input, select, textarea, [tabindex]:not([
* @param {import('vue').Ref | HTMLElement} listElementRef component ref to mount navigation
* @param {import('vue').Ref} defaultElementRef component ref to return focus to // Vue component
* @param {object} options navigation options
* @param {boolean} [options.confirmEnter=false] flag to confirm Enter click
* @param {boolean} [options.confirmEnter] flag to confirm Enter click
*/
export function useArrowNavigation(listElementRef, defaultElementRef, options = { confirmEnter: false }) {
const listRef = ref(null)

View file

@ -51,8 +51,8 @@ type EditMessagePayload = { token: string, messageId: number, updatedMessage: ed
* @param data.lastKnownMessageId last known message id;
* @param data.includeLastKnown whether to include the last known message in the response;
* @param data.threadId The thread id to retrieve data
* @param [data.lookIntoFuture=0] direction of message fetch
* @param [data.limit=100] Number of messages to load
* @param [data.lookIntoFuture] direction of message fetch
* @param [data.limit] Number of messages to load
* @param [options] Axios request options
*/
async function fetchMessages({
@ -84,7 +84,7 @@ async function fetchMessages({
* @param data the wrapping object;
* @param data.lastKnownMessageId The id of the last message in the store.
* @param data.token The conversation token;
* @param [data.limit=100] Number of messages to load
* @param [data.limit] Number of messages to load
* @param [options] Axios request options
*/
async function pollNewMessages({
@ -114,7 +114,7 @@ async function pollNewMessages({
* @param data.token the conversation token;
* @param data.messageId last known message id;
* @param data.threadId The thread id to retrieve data
* @param [data.limit=50] Number of messages to load
* @param [data.limit] Number of messages to load
* @param [options] Axios request options
*/
async function getMessageContext({ token, messageId, threadId, limit = 50 }: GetMessageContextPayload, options?: AxiosRequestConfig): getMessageContextResponse {
@ -260,7 +260,7 @@ async function summarizeChat(token: string, fromMessageId: summarizeChatParams['
*
* @param data the wrapping object
* @param data.token the conversation token
* @param [data.limit=50] Number of threads to return
* @param [data.limit] Number of threads to return
* @param [options] Axios request options
*/
async function getRecentThreadsForConversation({ token, limit }: { token: string } & getRecentThreadsParams, options?: AxiosRequestConfig): getRecentThreadsResponse {
@ -287,7 +287,7 @@ async function getSingleThreadForConversation(token: string, threadId: number, o
* Fetch a list of threads user subscribed to
*
* @param data the wrapping object
* @param [data.limit=50] Number of threads to return
* @param [data.limit] Number of threads to return
* @param [data.offset] Thread offset to fetch from
* @param [options] Axios request options
*/

View file

@ -830,7 +830,7 @@ const actions = {
* @param {number} data.threadId Thread id to fetch messages for;
* @param {number} data.minimumVisible Minimum number of chat messages we want to load
* @param {boolean} data.includeLastKnown whether to include the last known message in the response;
* @param {number} [data.lookIntoFuture=0] direction of message fetch
* @param {number} [data.lookIntoFuture] direction of message fetch
*/
async fetchMessages(context, {
token,

View file

@ -77,9 +77,9 @@ function findNcListItems(wrapper, text) {
/**
*
* @param {object} data response from the server
* @param {object} [data.headers = {}] headers of response
* @param {object} [data.payload = {}] payload of response
* @param {number} [data.status = 200] status code of response
* @param {object} [data.headers] headers of response
* @param {object} [data.payload] payload of response
* @param {number} [data.status] status code of response
* @return {object}
*/
function generateOCSResponse({ headers = {}, payload = {}, status = 200 }) {
@ -108,8 +108,8 @@ function generateOCSResponse({ headers = {}, payload = {}, status = 200 }) {
/**
*
* @param {object} data response from the server
* @param {object} [data.headers = {}] headers of response
* @param {object} [data.payload = {}] payload of response
* @param {object} [data.headers] headers of response
* @param {object} [data.payload] payload of response
* @param {number} data.status status code of response
* @return {object}
*/

View file

@ -19,11 +19,11 @@ import adapter from 'webrtc-adapter'
* @param {HTMLVideoElement|null} el The video element where to attach the stream.
* If null, a new element will be created.
* @param {object} [options] Options
* @param {boolean} [options.autoplay=true] Autoplay the video
* @param {boolean} [options.mirror=false] Mirror the video (horizontal flip)
* @param {boolean} [options.muted=false] Mute the audio
* @param {boolean} [options.audio=false] Only use audio
* @param {boolean} [options.disableContextMenu=false] Disable the context menu
* @param {boolean} [options.autoplay] Autoplay the video
* @param {boolean} [options.mirror] Mirror the video (horizontal flip)
* @param {boolean} [options.muted] Mute the audio
* @param {boolean} [options.audio] Only use audio
* @param {boolean} [options.disableContextMenu] Disable the context menu
*/
export default function attachmediastream(stream, el, options) {
let item

View file

@ -27,7 +27,7 @@ function convertToUnix(time: number | Date): number {
* Calculates the stopwatch string given the time (ms)
*
* @param time the time in ms
* @param [condensed=false] the format of string to show
* @param [condensed] the format of string to show
*/
function formattedTime(time: number, condensed: boolean = false): string {
if (!time) {