Skip to content

Commit

Permalink
chore(eslint): fix all errors
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Oct 17, 2023
1 parent de20d0e commit 5a4ef51
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/AppNavigation/ContactsSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default {
this.enableSocialSyncLoading = false
}
},
onLoad(event) {
onLoad() {
this.$emit('file-loaded', false)
},
async onOpen() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default {
renameAddressbook() {
this.editingName = true
},
async updateAddressbookName(e) {
async updateAddressbookName() {
const addressbook = this.addressbook
// New name for addressbook - inputed value from form
const newName = this.$refs.renameInput.$el.querySelector('input[type="text"]').value
Expand Down
2 changes: 1 addition & 1 deletion src/components/EntityPicker/ContactsPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default {
// push contact to server and use limit
requests.push(limit(() => appendContactToGroup(contact, groupName)
.then((response) => {
.then(() => {
this.$store.dispatch('addContactToGroup', { contact, groupName })
this.processStatus.progress++
this.processStatus.success++
Expand Down
2 changes: 1 addition & 1 deletion src/components/Properties/PropertyText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default {
/**
* Watch textarea resize and update the gridSize accordingly
*/
resizeHeight: debounce(function(e) {
resizeHeight: debounce(function() {
if (this.$refs.textarea && this.$refs.textarea.offsetHeight) {
// adjust textarea size to content (2 = border)
this.$refs.textarea.style.height = `${this.$refs.textarea.scrollHeight + 2}px`
Expand Down
4 changes: 2 additions & 2 deletions src/models/circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type MemberList = Record<string, Member>

export default class Circle {

_data: any = {}
_data: unknown = {}
_members: MemberList = {}
_owner: Member
_initiator: Member
Expand All @@ -48,7 +48,7 @@ export default class Circle {
*
* @param data
*/
updateData(data: any) {
updateData(data: unknown) {
if (typeof data !== 'object') {
throw new Error('Invalid circle')
}
Expand Down
1 change: 1 addition & 0 deletions src/models/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const MEMBER_LEVEL_ADMIN: MemberLevel = 8
const MEMBER_LEVEL_OWNER: MemberLevel = 9

// Circles member types
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
const MEMBER_TYPE_SINGLEID: MemberType = 0
const MEMBER_TYPE_USER: MemberType = 1
const MEMBER_TYPE_GROUP : MemberType = 2
Expand Down
6 changes: 3 additions & 3 deletions src/models/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Circle from './circle'
import logger from '../services/logger.js'
export default class Member {

_data: any = {}
_data: unknown = {}
_circle: Circle

/**
Expand All @@ -34,7 +34,7 @@ export default class Member {
* @param data
* @param circle
*/
constructor(data: any, circle: Circle) {
constructor(data: unknown, circle: Circle) {
if (typeof data !== 'object') {
throw new Error('Invalid member')
}
Expand Down Expand Up @@ -107,7 +107,7 @@ export default class Member {
/**
* Member based on source
*/
get basedOn(): any {
get basedOn(): unknown {
return this._data.basedOn
}

Expand Down
4 changes: 2 additions & 2 deletions src/services/circles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ export const deleteCircle = async function(circleId: string) {
*
* @param {string} circleId the circle id
* @param {CircleEditType} type the edit type
* @param {any} data the data
* @param {unknown} data the data
* @param value
* @return {object}
*/
export const editCircle = async function(circleId: string, type: CircleEditType, value: any) {
export const editCircle = async function(circleId: string, type: CircleEditType, value: unknown) {
const response = await axios.put(generateOcsUrl('apps/circles/circles/{circleId}/{type}', { circleId, type }), { value })
return response.data.ocs.data
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Contacts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export default {
.map(addressbook => {
return this.$store.dispatch('getContactsFromAddressBook', { addressbook })
}),
).then(results => {
).then(() => {
this.loadingContacts = false
if (!this.isMobile && !this.selectedChart) {
this.selectFirstContactIfNone()
Expand Down

0 comments on commit 5a4ef51

Please sign in to comment.