Browse Source

chore(lint): enable 'vue/multi-word-component-names' rule

- lint jsdoc warnings

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
pull/16049/head
Maksim Sukharev 2 months ago
parent
commit
0dca34885e
  1. 1
      eslint.config.mjs
  2. 1
      src/services/messagesService.ts
  3. 1
      src/services/pollService.ts

1
eslint.config.mjs

@ -49,7 +49,6 @@ export default [
'no-console': 'off', // non-fixable
'no-unused-vars': 'off', // non-fixable
'no-use-before-define': 'off', // non-fixable
'vue/multi-word-component-names': 'off', // non-fixable
'vue/no-boolean-default': 'off', // non-fixable
'vue/no-required-prop-with-default': 'off', // non-fixable
'vue/no-unused-properties': 'off', // non-fixable

1
src/services/messagesService.ts

@ -210,6 +210,7 @@ async function editMessage({ token, messageId, updatedMessage }: EditMessagePayl
* @param data.objectId object id
* @param data.metaData JSON metadata of the rich object encoded as string
* @param data.referenceId generated reference id, leave empty to generate it based on the other args
* @param data.threadId thread id to retrieve data
* @param [options] Axios request options
*/
async function postRichObjectToConversation(token: string, { objectType, objectId, metaData, referenceId, threadId }: postRichObjectParams, options?: AxiosRequestConfig): postRichObjectResponse {

1
src/services/pollService.ts

@ -30,6 +30,7 @@ type updatePollDraftPayload = { token: string, pollId: number } & updatePollDraf
* @param payload.options The options participants can vote for
* @param payload.resultMode Result mode of the poll (0 - always visible | 1 - hidden until the poll is closed)
* @param payload.maxVotes Maximum amount of options a user can vote for (0 - unlimited | 1 - single answer)
* @param payload.threadId The thread id to create poll in
*/
async function createPoll({ token, question, options, resultMode, maxVotes, threadId }: createPollPayload): createPollResponse {
return axios.post(generateOcsUrl('apps/spreed/api/v1/poll/{token}', { token }), {

Loading…
Cancel
Save