Skip to content

Commit e939943

Browse files
dependabot[bot]ChristophWurst
authored andcommitted
Bump @nextcloud/eslint-config from 6.0.0 to 6.1.0
Bumps [@nextcloud/eslint-config](https://github.com/nextcloud/eslint-config) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/nextcloud/eslint-config/releases) - [Changelog](https://github.com/nextcloud/eslint-config/blob/master/CHANGELOG.md) - [Commits](nextcloud-libraries/eslint-config@v6.0.0...v6.1.0) --- updated-dependencies: - dependency-name: "@nextcloud/eslint-config" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Christoph Wurst <[email protected]>
1 parent ce45a8c commit e939943

36 files changed

+391
-335
lines changed

package-lock.json

+104-116
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"devDependencies": {
7777
"@nextcloud/babel-config": "^1.0.0",
7878
"@nextcloud/browserslist-config": "^2.1.0",
79-
"@nextcloud/eslint-config": "^6.0.0",
79+
"@nextcloud/eslint-config": "^6.1.0",
8080
"@nextcloud/stylelint-config": "^1.0.0-beta.0",
8181
"@nextcloud/typings": "^1.2.1",
8282
"@nextcloud/webpack-vue-config": "^4.1.0",

src/admin-settings.js

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import AdminSettings from './components/AdminSettings'
2525

2626
document.addEventListener('DOMContentLoaded', main)
2727

28+
/**
29+
*
30+
*/
2831
function main() {
2932
Vue.prototype.t = t
3033

src/components/AppContent/CircleContent.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export default {
108108

109109
/**
110110
* Is the current circle empty
111-
* @returns {boolean}
111+
*
112+
* @return {boolean}
112113
*/
113114
isEmptyCircle() {
114115
return this.members.length === 0

src/components/AppContent/ContactsContent.vue

+7-4
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,16 @@ export default {
123123
/**
124124
* Is this a real group ?
125125
* Aka not a dynamically generated one like `All contacts`
126-
* @returns {boolean}
126+
*
127+
* @return {boolean}
127128
*/
128129
isRealGroup() {
129130
return this.groups.findIndex(group => group.name === this.selectedGroup) > -1
130131
},
131132
/**
132133
* Is the current group empty
133-
* @returns {boolean}
134+
*
135+
* @return {boolean}
134136
*/
135137
isEmptyGroup() {
136138
return this.contactsList.length === 0
@@ -144,6 +146,7 @@ export default {
144146
methods: {
145147
/**
146148
* Forward the addContactsToGroup event to the parent
149+
*
147150
* @param {string} groupName the group name
148151
*/
149152
addContactsToGroup(groupName) {
@@ -154,7 +157,7 @@ export default {
154157
* Forward the newContact event to the parent
155158
*/
156159
newContact() {
157-
this.$emit('newContact')
160+
this.$emit('new-contact')
158161
},
159162

160163
/**
@@ -165,7 +168,7 @@ export default {
165168
this.$router.push({
166169
name: 'group',
167170
params: {
168-
selectedGroup: this.selectedGroup
171+
selectedGroup: this.selectedGroup,
169172
},
170173
})
171174
},

src/components/AppNavigation/GroupNavigationItem.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default {
8383
/**
8484
* Download group of contacts
8585
*
86-
* @param {Object} group of contacts to be downloaded
86+
* @param {object} group of contacts to be downloaded
8787
*/
8888
downloadGroup(group) {
8989
// get grouped contacts

src/components/AppNavigation/Settings/SettingsAddressbook.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
-->
2323
<template>
2424
<div class="settings-addressbook-list">
25-
<div class="icon-group settings-line__icon"></div>
25+
<div class="icon-group settings-line__icon" />
2626
<li :class="{'addressbook--disabled': !addressbook.enabled}" class="addressbook">
2727
<!-- addressbook name -->
2828
<span class="addressbook__name" :title="addressbook.displayName">

src/components/AppNavigation/Settings/SettingsAddressbookShare.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default {
9393
/**
9494
* Share addressbook
9595
*
96-
* @param {Object} data destructuring object
96+
* @param {object} data destructuring object
9797
* @param {string} data.user the userId
9898
* @param {string} data.displayName the displayName
9999
* @param {string} data.uri the sharing principalScheme uri

src/components/AppNavigation/Settings/SettingsNewAddressbook.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<template>
2424
<div class="new-addressbook-entry">
25-
<div class="icon-add settings-line__icon"></div>
25+
<div class="icon-add settings-line__icon" />
2626
<form id="new-addressbook-form"
2727
:disabled="loading"
2828
:class="{'icon-loading-small': loading}"

src/components/AppNavigation/Settings/SettingsSortContacts.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<template>
2424
<div class="sort-contacts">
25-
<div class="icon-category-organization settings-line__icon"></div>
25+
<div class="icon-category-organization settings-line__icon" />
2626
<Multiselect
2727
id="sort-by"
2828
:value="orderKeyOption"

src/components/CircleDetails.vue

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export default {
184184
methods: {
185185
/**
186186
* Autocomplete @mentions on the description
187+
*
187188
* @param {string} search the search term
188189
* @param {Function} callback callback to be called with results array
189190
*/

src/components/CircleDetails/CircleConfigs.vue

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export default {
8181

8282
/**
8383
* On toggle, add or remove the config bitwise
84+
*
8485
* @param {CircleConfig} config the circle config to manage
8586
* @param {boolean} checked checked or not
8687
*/

src/components/ContactDetails.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export default {
320320
/**
321321
* Warning messages
322322
*
323-
* @returns {Object|boolean}
323+
* @return {object | boolean}
324324
*/
325325
warning() {
326326
if (!this.contact.dav) {
@@ -340,7 +340,7 @@ export default {
340340
/**
341341
* Conflict message
342342
*
343-
* @returns {string|boolean}
343+
* @return {string|boolean}
344344
*/
345345
conflict() {
346346
if (this.contact.conflict) {
@@ -352,7 +352,7 @@ export default {
352352
/**
353353
* Contact properties copied and sorted by rfcProps.fieldOrder
354354
*
355-
* @returns {Array}
355+
* @return {Array}
356356
*/
357357
sortedProperties() {
358358
return this.localContact.properties
@@ -367,7 +367,7 @@ export default {
367367
/**
368368
* Contact properties filtered and grouped by rfcProps.fieldOrder
369369
*
370-
* @returns {Object}
370+
* @return {object}
371371
*/
372372
groupedProperties() {
373373
return this.sortedProperties
@@ -390,7 +390,7 @@ export default {
390390
/**
391391
* Fake model to use the propertySelect component
392392
*
393-
* @returns {Object}
393+
* @return {object}
394394
*/
395395
addressbookModel() {
396396
return {
@@ -404,7 +404,7 @@ export default {
404404
* Usable addressbook object linked to the local contact
405405
*
406406
* @param {string} [addressbookId] set the addressbook id
407-
* @returns {string}
407+
* @return {string}
408408
*/
409409
addressbook: {
410410
get() {
@@ -418,7 +418,7 @@ export default {
418418
/**
419419
* Fake model to use the propertyGroups component
420420
*
421-
* @returns {Object}
421+
* @return {object}
422422
*/
423423
groupsModel() {
424424
return {
@@ -431,7 +431,7 @@ export default {
431431
* Usable groups object linked to the local contact
432432
*
433433
* @param {string[]} data An array of groups
434-
* @returns {Array}
434+
* @return {Array}
435435
*/
436436
groups: {
437437
get() {
@@ -447,7 +447,7 @@ export default {
447447
* Store getters filtered and mapped to usable object
448448
* This is the list of addressbooks that are available to write
449449
*
450-
* @returns {Array}
450+
* @return {Array}
451451
*/
452452
addressbooksOptions() {
453453
return this.addressbooks
@@ -743,7 +743,7 @@ export default {
743743
* Should display the property
744744
*
745745
* @param {Property} property the property to check
746-
* @returns {boolean}
746+
* @return {boolean}
747747
*/
748748
canDisplay(property) {
749749
// Make sure we have some model for the property and check for ITEM.PROP custom label format

src/components/ContactDetails/ContactDetailsAddNewProp.vue

+5-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export default {
6565

6666
/**
6767
* Rfc props
68-
* @returns {Object}
68+
*
69+
* @return {object}
6970
*/
7071
properties() {
7172
return rfcProps.properties
@@ -74,7 +75,7 @@ export default {
7475
/**
7576
* List of properties that the contact already have
7677
*
77-
* @returns {string[]}
78+
* @return {string[]}
7879
*/
7980
usedProperties() {
8081
return this.contact.jCal[1].map(prop => prop[0])
@@ -84,7 +85,7 @@ export default {
8485
* List of every properties you are allowed to add
8586
* on this contact
8687
*
87-
* @returns {Object[]}
88+
* @return {object[]}
8889
*/
8990
availableProperties() {
9091
return Object.keys(this.properties)
@@ -104,7 +105,7 @@ export default {
104105
/**
105106
* Add a new prop to the contact
106107
*
107-
* @param {Object} data destructuring object
108+
* @param {object} data destructuring object
108109
* @param {string} data.id the id of the property. e.g fn
109110
*/
110111
addProp({ id }) {

src/components/ContactDetails/ContactDetailsAvatar.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default {
217217
/**
218218
* Handler to store a new photo on the current contact
219219
*
220-
* @param {Object} event the event object containing the image
220+
* @param {object} event the event object containing the image
221221
*/
222222
processFile(event) {
223223
if (event.target.files && !this.loading) {
@@ -292,7 +292,7 @@ export default {
292292
* Return the word with (only) the first letter capitalized
293293
*
294294
* @param {string} word the word to handle
295-
* @returns {string} the word with the first letter capitalized
295+
* @return {string} the word with the first letter capitalized
296296
*/
297297
capitalize(word) {
298298
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
@@ -301,7 +301,7 @@ export default {
301301
* Return the mimetype based on the first magix byte
302302
*
303303
* @param {string} signature the first 4 bytes
304-
* @returns {string} the mimetype
304+
* @return {string} the mimetype
305305
*/
306306
getMimetype(signature) {
307307
switch (signature) {
@@ -324,8 +324,8 @@ export default {
324324
/**
325325
* Update the contact photo
326326
*
327-
* @param {String} data the photo as base64 binary string
328-
* @param {String} type mimetype
327+
* @param {string} data the photo as base64 binary string
328+
* @param {string} type mimetype
329329
*/
330330
setPhoto(data, type) {
331331
// Init with empty data
@@ -414,7 +414,7 @@ export default {
414414
/**
415415
* Downloads the Avatar from social media
416416
*
417-
* @param {String} network the social network to use (or 'any' for first match)
417+
* @param {string} network the social network to use (or 'any' for first match)
418418
*/
419419
async getSocialAvatar(network) {
420420

src/components/ContactDetails/ContactDetailsProperty.vue

+7-7
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default {
129129
/**
130130
* Return the type of the prop e.g. FN
131131
*
132-
* @returns {string}
132+
* @return {string}
133133
*/
134134
propName() {
135135
// ! is this a ITEMXX.XXX property??
@@ -144,7 +144,7 @@ export default {
144144
* Return the type or property
145145
*
146146
* @see src/models/rfcProps
147-
* @returns {string}
147+
* @return {string}
148148
*/
149149
propType() {
150150
// if we have a force type set, use it!
@@ -159,7 +159,7 @@ export default {
159159
* RFC template matching this property
160160
*
161161
* @see src/models/rfcProps
162-
* @returns {Object}
162+
* @return {object}
163163
*/
164164
propModel() {
165165
return this.properties[this.propName]
@@ -170,7 +170,7 @@ export default {
170170
* but make sure to include the selected one
171171
* in the final list
172172
*
173-
* @returns {Object[]}
173+
* @return {object[]}
174174
*/
175175
sortedModelOptions() {
176176
if (this.propModel.options) {
@@ -188,7 +188,7 @@ export default {
188188
* Return the id and type of a property group
189189
* e.g ITEMXX.tel => ['ITEMXX', 'tel']
190190
*
191-
* @returns {Array}
191+
* @return {Array}
192192
*/
193193
propGroup() {
194194
return this.property.name.split('.')
@@ -197,7 +197,7 @@ export default {
197197
/**
198198
* Return the associated X-ABLABEL if any
199199
*
200-
* @returns {Property}
200+
* @return {Property}
201201
*/
202202
propLabel() {
203203
return this.localContact.vCard.getFirstProperty(`${this.propGroup[0]}.x-ablabel`)
@@ -208,7 +208,7 @@ export default {
208208
* or return the default selected as a new object if
209209
* none exists
210210
*
211-
* @returns Object|null
211+
* @return Object|null
212212
*/
213213
selectType: {
214214
get() {

src/components/ContactsList.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default {
112112
/**
113113
* Scroll to the desired contact if in the list and not visible
114114
*
115-
* @param {String} key the contact unique key
115+
* @param {string} key the contact unique key
116116
*/
117117
scrollToContact(key) {
118118
const item = this.$el.querySelector('#' + btoa(key).slice(0, -2))
@@ -139,7 +139,7 @@ export default {
139139
* Is this matching the current search ?
140140
*
141141
* @param {Contact} contact the contact to search
142-
* @returns {boolean}
142+
* @return {boolean}
143143
*/
144144
matchSearch(contact) {
145145
if (this.searchQuery.trim() !== '') {

0 commit comments

Comments
 (0)