Skip to content

Commit d71519e

Browse files
committed
refactor: fix eslint errors
1 parent 8627362 commit d71519e

File tree

10 files changed

+35
-55
lines changed

10 files changed

+35
-55
lines changed

docs/src/.vuepress/client.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ const vuetify = createVuetify({
1717
})
1818

1919
export default defineClientConfig({
20-
enhance({ app, router, siteData }){
20+
enhance ({ app, router, siteData }) {
2121
app.use(vuetify)
2222
app.use(CronCore)
2323
app.use(CronVuetify)
2424
app.use(CronLight)
2525

2626
app.mixin({
2727
computed: {
28-
$vars() {
28+
$vars () {
2929
return variables
3030
}
3131
}
3232
})
3333
},
34-
setup(){},
35-
rootComponents: [],
34+
setup () {},
35+
rootComponents: []
3636
})
3737

3838
// export default ({

docs/src/.vuepress/components/code-example.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div>
33

4-
54
<v-toolbar dense class="elevation-0 bg-transparent">
65
<v-toolbar-title class="pa-0 ma-0" v-if="title">{{title}}</v-toolbar-title>
76

@@ -27,7 +26,6 @@
2726
<div>
2827
<slot></slot>
2928
</div>
30-
3129

3230
<slot name="code"></slot>
3331

docs/src/.vuepress/components/custom-fields.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
22
<div>
33
<div class="mb-2">{{value}}</div>
4-
<CronLight
5-
v-model="value"
6-
:periods="periods"
7-
:fields="fields"
8-
@error="error=$event"
4+
<CronLight
5+
v-model="value"
6+
:periods="periods"
7+
:fields="fields"
8+
@error="error=$event"
99
:custom-locale="customLocale" />
1010
</div>
1111
</template>

docs/src/.vuepress/components/custom-select.vue

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/src/.vuepress/components/getting-started-renderless.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
</v-chip>
1818
{{period.suffix}}
1919

20-
2120
<!-- cron expression fields -->
2221
<template v-for="f in fields" :key="f.id">
2322
{{f.prefix}}
24-
23+
2524
<v-chip>
2625
{{f.selectedStr}}
2726
<v-menu activator="parent" :close-on-content-click="false">
@@ -39,12 +38,12 @@
3938
</template>
4039

4140
<!-- editable cron expression -->
42-
<v-text-field
43-
class="mt-4"
44-
:modelValue="value"
41+
<v-text-field
42+
class="mt-4"
43+
:modelValue="value"
4544
@update:model-value="nextValue = $event"
46-
@blur="value = nextValue"
47-
label="cron expression"
45+
@blur="value = nextValue"
46+
label="cron expression"
4847
:error-messages="error" />
4948

5049
</div>
@@ -55,7 +54,6 @@
5554
<script>
5655
export default {
5756
data () {
58-
5957
const value = '* * * * *'
6058
6159
return {

docs/src/.vuepress/components/getting-started-vuetify.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<div>
33

44
<CronVuetify v-model="value" @error="error=$event"></CronVuetify>
5-
5+
66
<!-- editable cron expression -->
7-
<v-text-field
7+
<v-text-field
88
class="pt-3"
9-
:modelValue="value"
9+
:modelValue="value"
1010
@update:model-value="nextValue = $event"
11-
@blur="value = nextValue"
12-
label="cron expression"
11+
@blur="value = nextValue"
12+
label="cron expression"
1313
:error-messages="error" />
1414

1515
</div>

docs/src/.vuepress/components/md-table.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default {
2929
},
3030
methods: {
3131
renderMd (mdStr) {
32+
// eslint-disable-next-line
3233
const md = new markdownIt({
3334
html: true
3435
})

docs/src/.vuepress/components/selection-grid.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export default {
1313
default: false
1414
},
1515
value: {
16-
default: function () {
17-
return (this.multiple) ? [] : undefined
16+
default: function (props) {
17+
return (props.multiple) ? [] : undefined
1818
}
1919
},
2020
items: {

docs/src/.vuepress/config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,24 @@ module.exports = {
9090

9191
bundler: viteBundler({
9292
viteOptions: {
93-
//https://github.com/vuepress/vuepress-next/issues/585#issuecomment-1046188074
93+
// https://github.com/vuepress/vuepress-next/issues/585#issuecomment-1046188074
9494
ssr: {
95-
noExternal: ['vuetify'],
96-
},
95+
noExternal: ['vuetify']
96+
}
9797
},
98-
vuePluginOptions: {},
98+
vuePluginOptions: {}
9999
}),
100100

101101
markdown: {
102102
importCode: {
103103
handleImportPath: (str) =>
104-
str.replace(/^@\/src/, path.resolve(__dirname, '../../src')),
105-
},
104+
str.replace(/^@\/src/, path.resolve(__dirname, '../../src'))
105+
}
106106
},
107107

108108
plugins: [
109109
registerComponentsPlugin({
110-
componentsDir: path.resolve(__dirname, './components'),
110+
componentsDir: path.resolve(__dirname, './components')
111111
})
112112
// '@vuepress/plugin-back-to-top',
113113
// '@vuepress/plugin-medium-zoom'

docs/src/.vuepress/vars.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const variables = {
2-
channel: 'next',
2+
channel: 'next',
33

4-
vuetifyProps: [
5-
{ name: 'variant', type: '`string`', default: '`"elevated"`', desc: '' },
6-
{ name: 'density', type: '`string`', default: '`"default"`', desc: 'Available options are: default, comfortable, and compact.' }
7-
]
4+
vuetifyProps: [
5+
{ name: 'variant', type: '`string`', default: '`"elevated"`', desc: '' },
6+
{ name: 'density', type: '`string`', default: '`"default"`', desc: 'Available options are: default, comfortable, and compact.' }
7+
]
88
}
99

1010
export { variables }

0 commit comments

Comments
 (0)