Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 9a68e68

Browse files
committed
hey linter
1 parent cbe143f commit 9a68e68

File tree

12 files changed

+33
-33
lines changed

12 files changed

+33
-33
lines changed

jsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"exclude": [
1515
"dist",
1616
".quasar",
17-
"node_modules"
17+
"node_modules",
18+
"storybook-static"
1819
]
1920
}

src/authuser/components/Settings/ChangePhoto.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { usersMock } from '>/mockdata'
33
import cloneDeep from 'clone-deep'
44

55
import { mountWithDefaults, statusMocks, nextTicks } from '>/helpers'
6-
import { configureCompat } from 'vue'
6+
import { configureCompat } from '@vue/compat'
77
jest.mock('vue', () => jest.requireActual('@vue/compat'))
88
configureCompat({ MODE: 3 })
99

src/base/routes/main.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ jest.mock('@/router', () => {
1818
name: 'landing',
1919
path: '/welcome',
2020
component: {
21-
template: '<div>landing</div>'
21+
template: '<div>landing</div>',
2222
},
2323
},
2424
{
2525
name: 'groupsGallery',
2626
path: '/groupPreview',
2727
component: {
28-
template: '<div>gallery</div>'
28+
template: '<div>gallery</div>',
2929
},
3030
},
3131
{
3232
path: '/',
3333
component: {
34-
template: '<div>root</div>'
34+
template: '<div>root</div>',
3535
},
3636
},
3737
],
@@ -66,7 +66,7 @@ function mountRouterViewWith ({ datastore, router }) {
6666
router,
6767
datastore,
6868
i18nPlugin,
69-
]
69+
],
7070
},
7171
})
7272
}
@@ -120,7 +120,7 @@ describe('main routes', () => {
120120
name: 'group',
121121
path: '/group/:groupId',
122122
component: {
123-
template: '<div>group</div>'
123+
template: '<div>group</div>',
124124
},
125125
})
126126
group = {

src/feedback/components/ActivityFeedback.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
:has-multiple-participants="fellowParticipants.length > 0"
7878
:has-weight="select.activityType.hasFeedbackWeight"
7979
@save="(...args) => $emit('save', ...args)"
80-
@dismissFeedback="(...args) => $emit('dismissFeedback', ...args)"
80+
@dismiss-feedback="(...args) => $emit('dismissFeedback', ...args)"
8181
/>
8282
</div>
8383
</QCard>

src/feedback/pages/GiveFeedback.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:fetch-feedback-possible-status="$store.getters['activities/fetchFeedbackPossibleStatus']"
1010
:seed-id="$store.getters['currentGroup/id']"
1111
@save="data => $store.dispatch('feedback/save', data)"
12-
@dismissFeedback="data => $store.dispatch('activities/dismissFeedback', data)"
12+
@dismiss-feedback="data => $store.dispatch('activities/dismissFeedback', data)"
1313
/>
1414
</template>
1515

src/group/components/GroupSettings.story.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import Vue from 'vue'
2-
import { h } from 'vue'
1+
import { h, reactive } from 'vue'
32
import { storiesOf } from '@storybook/vue'
43
import { action } from '@storybook/addon-actions'
54
import { storybookDefaults as defaults } from '>/helpers'
@@ -12,7 +11,7 @@ const changeNotificationType = action('changeNotificationType')
1211
storiesOf('GroupSettings', module)
1312
.add('show', () => {
1413
// Create a reactive copy of the group
15-
const group = new Vue({ data: { ...groupsMock[0] } })
14+
const group = reactive({ ...groupsMock[0] })
1615

1716
return defaults({
1817
render: () => h(GroupSettings, {

src/messages/components/LatestMessages.story.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ const thread = {
3535
}
3636

3737
storiesOf('Latest Messages', module)
38-
.add('flag: muted', () => defaults({
39-
render: () => h(LatestMessageItem, {
40-
user,
41-
message,
42-
muted: true,
43-
...on,
44-
}),
45-
}))
46-
.add('flag: closed', () => defaults({
47-
render: () => h(LatestMessageItem, {
48-
application,
49-
message,
50-
closed: true,
51-
...on,
52-
}),
53-
}))
38+
.add('flag: muted', () => defaults({
39+
render: () => h(LatestMessageItem, {
40+
user,
41+
message,
42+
muted: true,
43+
...on,
44+
}),
45+
}))
46+
.add('flag: closed', () => defaults({
47+
render: () => h(LatestMessageItem, {
48+
application,
49+
message,
50+
closed: true,
51+
...on,
52+
}),
53+
}))
5454
.add('flag: closed+muted', () => defaults({
5555
render: () => h(LatestMessageItem, {
5656
application,

src/places/components/PlaceEdit.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export default {
260260
},
261261
emits: [
262262
'cancel',
263+
'save',
263264
],
264265
setup () {
265266
return {

src/topbar/components/KTopbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@reconnect="$store.dispatch('connectivity/reconnect')"
1313
@show-search="$store.commit('search/show')"
1414
@hide-search="$store.commit('search/hide')"
15-
@toggleSidenav="$emit('toggle-sidenav')"
15+
@toggle-sidenav="$emit('toggle-sidenav')"
1616
/>
1717
</template>
1818

src/utils/components/MarkdownInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</template>
4141
<template
4242
v-for="(_, slotName) in $slots"
43-
v-slot:[slotName]="slotData"
43+
#[slotName]="slotData"
4444
>
4545
<slot
4646
:name="slotName"

src/utils/cordova/setupRefresh.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ document.addEventListener('deviceready', () => {
2727
// wait 5 seconds before triggering refresh
2828
const refresh = () => setTimeout(() => datastore.commit('refresh/requestRefresh', true), 5000)
2929

30-
3130
watch(() => status.online, val => {
3231
if (val) refresh()
3332
})

src/utils/detectMobileKeyboard.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('detectMobileKeyboard', () => {
2828
})
2929

3030
describe('desktop', () => {
31-
beforeEach(() => mockPlatform.is.mobile = false)
31+
beforeEach(() => { mockPlatform.is.mobile = false })
3232
it('defaults to closed', () => {
3333
expect(detectMobileKeyboard.is.open).toBe(false)
3434
})
@@ -44,7 +44,7 @@ describe('detectMobileKeyboard', () => {
4444
})
4545

4646
describe('mobile', () => {
47-
beforeEach(() => mockPlatform.is.mobile = true)
47+
beforeEach(() => { mockPlatform.is.mobile = true })
4848
it('defaults to closed', () => {
4949
expect(detectMobileKeyboard.is.open).toBe(false)
5050
})

0 commit comments

Comments
 (0)