Skip to content

Commit a66a14a

Browse files
committed
Add eslint rule for long form of v-slot
1 parent a7f9b41 commit a66a14a

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ module.exports = {
7373
rules: {
7474
'vue/v-on-style': ['error', 'longform'],
7575
'vue/v-bind-style': ['error', 'longform'],
76+
'vue/v-slot-style': ['error', 'longform'],
7677
'vue/no-unused-properties': ['error', {
7778
'groups': ['props', 'data', 'computed', 'methods', 'setup'],
7879
'deepData': true,

src/components/ScreenLicense.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
v-on:filter="licenseFilterFunction"
3030
v-on:update:model-value="setLicense"
3131
>
32-
<template #no-option>
32+
<template v-slot:no-option>
3333
<q-item>
3434
<q-item-section class="text-grey">
3535
No results

src/components/ScreenStart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
v-on:new-value="setMessage"
4242
v-on:update:modelValue="setMessage"
4343
>
44-
<template #append>
44+
<template v-slot:append>
4545
<q-btn-dropdown
4646
class="dropdown"
4747
flat

src/components/ScreenVersionSpecific.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
v-bind:error-message="dateReleasedErrors.join(', ')"
5656
v-on:update:modelValue="setDateReleased"
5757
>
58-
<template #append>
58+
<template v-slot:append>
5959
<q-icon
6060
name="event"
6161
class="cursor-pointer"

0 commit comments

Comments
 (0)