Skip to content

Commit

Permalink
fix: ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev authored Dec 29, 2023
1 parent 64fe310 commit bcc7d76
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import { confirmPassword } from '@nextcloud/password-confirmation'
* Debounce helper for method
* TODO: Should we remove this and use library?
*
* @param {function()} func - The callback function
* @param {function} func - The callback function

Check warning on line 124 in src/components/AdminSettings.vue

View workflow job for this annotation

GitHub Actions / eslint node

Invalid JSDoc @param "func" type "function"; prefer: "Function"

Check warning on line 124 in src/components/AdminSettings.vue

View workflow job for this annotation

GitHub Actions / eslint

Invalid JSDoc @param "func" type "function"; prefer: "Function"
* @param {number} wait - Time to wait in miliseconds
*/
function debounce(func, wait) {
Expand Down
5 changes: 5 additions & 0 deletions src/components/ContentTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ watch(selectedFeedItem, (newSelectedFeedItem) => {
}
})
/**

Check warning on line 83 in src/components/ContentTemplate.vue

View workflow job for this annotation

GitHub Actions / eslint node

JSDoc @return declaration present but return expression not available in function

Check warning on line 83 in src/components/ContentTemplate.vue

View workflow job for this annotation

GitHub Actions / eslint

JSDoc @return declaration present but return expression not available in function
* Unselect a list item.
*

Check failure on line 85 in src/components/ContentTemplate.vue

View workflow job for this annotation

GitHub Actions / eslint node

Trailing spaces not allowed

Check failure on line 85 in src/components/ContentTemplate.vue

View workflow job for this annotation

GitHub Actions / eslint

Trailing spaces not allowed
* @return void

Check warning on line 86 in src/components/ContentTemplate.vue

View workflow job for this annotation

GitHub Actions / eslint node

Missing JSDoc @return type

Check warning on line 86 in src/components/ContentTemplate.vue

View workflow job for this annotation

GitHub Actions / eslint

Missing JSDoc @return type
*/
function unselectItem() {
itemStore.mutations.SET_SELECTED_ITEM(
itemStore.state,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShareItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default Vue.extend({
/**
* Adds or removes user to selected list
*
* @param user {ShareUser} user that was clicked
* @param {ShareUser} user - User that was clicked
*/
clickUser(user: ShareUser) {
const selectedUsers = this.selected.map((val: ShareUser) => { return val.shareName })
Expand Down
2 changes: 2 additions & 0 deletions src/components/feed-display/FeedItemDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@
<img v-else :src="item.mediaThumbnail" alt="">
</div>

<!-- eslint-disable vue/no-v-html -->
<div v-if="item.mediaDescription" class="enclosure description" v-html="item.mediaDescription" />

<div class="body" :dir="item.rtl && 'rtl'" v-html="item.body" />
<!--eslint-enable-->
</div>
</div>
</template>
Expand Down
2 changes: 2 additions & 0 deletions src/components/feed-display/FeedItemRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
</div>

<div class="intro-container">
<!-- eslint-disable vue/no-v-html -->
<span class="intro" v-html="item.intro" />
<!--eslint-enable-->
</div>

<div class="date-container">
Expand Down
2 changes: 1 addition & 1 deletion src/dataservices/feed.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class FeedService {
* Attempts to add a feed to the Nextcloud News backend
* NOTE: this can fail if feed URL is not resolvable
*
* @param param0
* @param param0 Data for the feed
* @param param0.url {String} url of the feed to add
* @param param0.folderId {number} id number of folder to add feed to
* @param param0.user {String} http auth username required for accessing feed
Expand Down

0 comments on commit bcc7d76

Please sign in to comment.