Skip to content

Commit 656b896

Browse files
committed
fix: eslint fixes
1 parent bb99726 commit 656b896

20 files changed

+158
-162
lines changed

docs/.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ module.exports = {
2626
// See https://eslint.vuejs.org/rules/#available-rules
2727
// 'plugin:vue/vue3-essential' // Priority A: Essential (Error Prevention)
2828
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
29-
'plugin:vue/vue3-recommended' // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
29+
'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
30+
'standard'
3031
],
3132

3233
plugins: [

docs/src/assets/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ const menu = [
861861
{
862862
name: 'Task - Custom height',
863863
path: 'task-custom-height'
864-
},
864+
}
865865
]
866866
},
867867
{

docs/src/components/DocsMenu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ export default {
5959
/**
6060
* Recursive method to find the QExpansionItem parent
6161
* @param {any} vm The Vue node
62-
* @returns
6362
*/
6463
function showMenu (vm) {
6564
if (vm !== void 0 && vm !== rootRef.value) {
66-
if(vm.show === void 0 && vm.$parent !== void 0) {
65+
if (vm.show === void 0 && vm.$parent !== void 0) {
6766
const parent = getParentVm(vm)
6867
if (parent !== void 0) {
6968
showMenu(parent)

docs/src/components/ThemeBuilder/week.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ import {
138138
getDayTimeIdentifier,
139139
getDateTime,
140140
copyTimestamp
141-
} from '@quasar/quasar-ui-qcalendar/src/index.js'
141+
} from '@quasar/quasar-ui-qcalendar/src/index.js'
142142
import '@quasar/quasar-ui-qcalendar/src/index.sass'
143143
144144
function leftClick (e) {

docs/src/components/page-parts/anatomy/QCalendarAgendaAnatomy.vue

Lines changed: 115 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -131,122 +131,121 @@ export default defineComponent({
131131
const selected = ref(types[ 0 ])
132132
const el = ref(null)
133133
const agenda = reactive({
134-
// value represents day of the week
135-
1: [
136-
{
137-
time: '08:00',
138-
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png',
139-
desc: 'Meeting with CEO'
140-
},
141-
{
142-
time: '08:30',
143-
avatar: 'https://cdn.quasar.dev/img/avatar.png',
144-
desc: 'Meeting with HR'
145-
},
146-
{
147-
time: '10:00',
148-
avatar: 'https://cdn.quasar.dev/img/avatar1.jpg',
149-
desc: 'Meeting with Karen'
150-
}
151-
],
152-
2: [
153-
{
154-
time: '11:30',
155-
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg',
156-
desc: 'Meeting with Alisha'
157-
},
158-
{
159-
time: '17:00',
160-
avatar: 'https://cdn.quasar.dev/img/avatar3.jpg',
161-
desc: 'Meeting with Sarah'
162-
}
163-
],
164-
3: [
165-
{
166-
time: '08:00',
167-
desc: 'Stand-up SCRUM',
168-
avatar: 'https://cdn.quasar.dev/img/material.png'
169-
},
170-
{
171-
time: '09:00',
172-
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png'
173-
},
174-
{
175-
time: '10:00',
176-
desc: 'Sprint planning',
177-
avatar: 'https://cdn.quasar.dev/img/material.png'
178-
},
179-
{
180-
time: '13:00',
181-
avatar: 'https://cdn.quasar.dev/img/avatar1.jpg'
182-
}
183-
],
184-
4: [
185-
{
186-
time: '09:00',
187-
avatar: 'https://cdn.quasar.dev/img/avatar3.jpg'
188-
},
189-
{
190-
time: '10:00',
191-
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg'
192-
},
193-
{
194-
time: '13:00',
195-
avatar: 'https://cdn.quasar.dev/img/material.png'
196-
}
197-
],
198-
5: [
199-
{
200-
time: '08:00',
201-
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png'
202-
},
203-
{
204-
time: '09:00',
205-
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg'
206-
},
207-
{
208-
time: '09:30',
209-
avatar: 'https://cdn.quasar.dev/img/avatar4.jpg'
210-
},
211-
{
212-
time: '10:00',
213-
avatar: 'https://cdn.quasar.dev/img/avatar5.jpg'
214-
},
215-
{
216-
time: '11:30',
217-
avatar: 'https://cdn.quasar.dev/img/material.png'
218-
},
219-
{
220-
time: '13:00',
221-
avatar: 'https://cdn.quasar.dev/img/avatar6.jpg'
222-
},
223-
{
224-
time: '13:30',
225-
avatar: 'https://cdn.quasar.dev/img/avatar3.jpg'
226-
},
227-
{
228-
time: '14:00',
229-
avatar: 'https://cdn.quasar.dev/img/linux-avatar.png'
230-
},
231-
{
232-
time: '14:30',
233-
avatar: 'https://cdn.quasar.dev/img/avatar.png'
234-
},
235-
{
236-
time: '15:00',
237-
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png'
238-
},
239-
{
240-
time: '15:30',
241-
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg'
242-
},
243-
{
244-
time: '16:00',
245-
avatar: 'https://cdn.quasar.dev/img/avatar6.jpg'
246-
}
247-
]
248-
})
249-
134+
// value represents day of the week
135+
1: [
136+
{
137+
time: '08:00',
138+
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png',
139+
desc: 'Meeting with CEO'
140+
},
141+
{
142+
time: '08:30',
143+
avatar: 'https://cdn.quasar.dev/img/avatar.png',
144+
desc: 'Meeting with HR'
145+
},
146+
{
147+
time: '10:00',
148+
avatar: 'https://cdn.quasar.dev/img/avatar1.jpg',
149+
desc: 'Meeting with Karen'
150+
}
151+
],
152+
2: [
153+
{
154+
time: '11:30',
155+
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg',
156+
desc: 'Meeting with Alisha'
157+
},
158+
{
159+
time: '17:00',
160+
avatar: 'https://cdn.quasar.dev/img/avatar3.jpg',
161+
desc: 'Meeting with Sarah'
162+
}
163+
],
164+
3: [
165+
{
166+
time: '08:00',
167+
desc: 'Stand-up SCRUM',
168+
avatar: 'https://cdn.quasar.dev/img/material.png'
169+
},
170+
{
171+
time: '09:00',
172+
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png'
173+
},
174+
{
175+
time: '10:00',
176+
desc: 'Sprint planning',
177+
avatar: 'https://cdn.quasar.dev/img/material.png'
178+
},
179+
{
180+
time: '13:00',
181+
avatar: 'https://cdn.quasar.dev/img/avatar1.jpg'
182+
}
183+
],
184+
4: [
185+
{
186+
time: '09:00',
187+
avatar: 'https://cdn.quasar.dev/img/avatar3.jpg'
188+
},
189+
{
190+
time: '10:00',
191+
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg'
192+
},
193+
{
194+
time: '13:00',
195+
avatar: 'https://cdn.quasar.dev/img/material.png'
196+
}
197+
],
198+
5: [
199+
{
200+
time: '08:00',
201+
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png'
202+
},
203+
{
204+
time: '09:00',
205+
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg'
206+
},
207+
{
208+
time: '09:30',
209+
avatar: 'https://cdn.quasar.dev/img/avatar4.jpg'
210+
},
211+
{
212+
time: '10:00',
213+
avatar: 'https://cdn.quasar.dev/img/avatar5.jpg'
214+
},
215+
{
216+
time: '11:30',
217+
avatar: 'https://cdn.quasar.dev/img/material.png'
218+
},
219+
{
220+
time: '13:00',
221+
avatar: 'https://cdn.quasar.dev/img/avatar6.jpg'
222+
},
223+
{
224+
time: '13:30',
225+
avatar: 'https://cdn.quasar.dev/img/avatar3.jpg'
226+
},
227+
{
228+
time: '14:00',
229+
avatar: 'https://cdn.quasar.dev/img/linux-avatar.png'
230+
},
231+
{
232+
time: '14:30',
233+
avatar: 'https://cdn.quasar.dev/img/avatar.png'
234+
},
235+
{
236+
time: '15:00',
237+
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png'
238+
},
239+
{
240+
time: '15:30',
241+
avatar: 'https://cdn.quasar.dev/img/avatar2.jpg'
242+
},
243+
{
244+
time: '16:00',
245+
avatar: 'https://cdn.quasar.dev/img/avatar6.jpg'
246+
}
247+
]
248+
})
250249
251250
watch(() => selected.value, (current, prev) => {
252251
removeClass(prev)

docs/src/components/page-parts/anatomy/QCalendarResourceAnatomy.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export default defineComponent({
137137
{ id: '5', name: 'Olivia' }
138138
])
139139
140-
141140
watch(() => selected.value, (current, prev) => {
142141
removeClass(prev)
143142
addClass(current)

docs/src/components/page-parts/anatomy/QCalendarSchedulerAnatomy.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ export default defineComponent({
154154
{ id: '5', name: 'Olivia' }
155155
])
156156
157-
158157
watch(() => selected.value, (current, prev) => {
159158
removeClass(prev)
160159
addClass(current)

docs/src/components/page-parts/articles/ArticlesAvatar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default defineComponent({
2929
},
3030
publishedDate: {
3131
type: String,
32-
default: '¯\_(ツ)_/¯'
32+
default: '¯\\_(ツ)_/¯'
3333
}
3434
}
3535
})
36-
</script>
36+
</script>

docs/src/components/page-parts/articles/ArticlesGridItem.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ export default defineComponent({
3434
$router = useRouter()
3535
3636
onMounted(() => {
37-
function testImage(url) {
38-
const imgPromise = new Promise(function imgPromise(resolve, reject) {
37+
function testImage (url) {
38+
const imgPromise = new Promise(function imgPromise (resolve, reject) {
3939
const imgElement = new Image()
4040
4141
// When image is loaded, resolve the promise
42-
imgElement.addEventListener('load', function imgOnLoad() {
42+
imgElement.addEventListener('load', function imgOnLoad () {
4343
resolve(this)
4444
})
4545
4646
// When there's an error during load, reject the promise
47-
imgElement.addEventListener('error', function imgOnError() {
48-
reject();
47+
imgElement.addEventListener('error', function imgOnError () {
48+
reject()
4949
})
5050
5151
// Assign URL
@@ -57,16 +57,16 @@ export default defineComponent({
5757
5858
const src = '/articles/' + props.article.name + '/index.jpg'
5959
testImage(src).then(
60-
function fulfilled(img) {
60+
function fulfilled (img) {
6161
img.style = 'max-width: 225px; max-height: 150px;'
6262
img.width = '225'
6363
coverImage.value = true
6464
coverImagePath.value = src
6565
imageRef.value.appendChild(img)
6666
},
67-
function rejected() {
67+
function rejected () {
6868
if (process.env.NODE_ENV !== 'production') {
69-
console.error('The image was not found:', src )
69+
console.error('The image was not found:', src)
7070
}
7171
}
7272
)

docs/src/components/page-parts/releases/PackageReleases.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default {
114114
.replace(/\*([\S ]*?)\*/g, '<em>$1</em>')
115115
.replace(/```([\S]+)/g, '<code class="markdown--code__inner markdown--code__inner--prerendered release__code">')
116116
.replace(/```\n/g, '</code>')
117-
.replace(/\`(.*?)\`/g, '<code class="markdown--token">$1</code>')
117+
.replace(/`(.*?)`/g, '<code class="markdown--token">$1</code>')
118118
.replace(/#([\d]+)/g, '<a class="markdown-link" href="https://github.com/quasarframework/quasar-ui-qcalendar/issues/$1" target="_blank">#$1</a>')
119119
.replace(/^&gt; ([\S ]+)$/gm, '<div class="release__blockquote">$1</div>')
120120
.replace(/\[([\S ]*?)\]\((\S*?)\)/g, '<a class="markdown-link" href="$2" target="_blank">$1</a>')

0 commit comments

Comments
 (0)