create-vuetify 2.2.6 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +713 -84
- package/dist/output.cjs +49 -10
- package/package.json +10 -8
- package/template/javascript/base/eslint.config.js +23 -0
- package/template/javascript/base/package.json +4 -7
- package/template/javascript/base/vite.config.mjs +7 -0
- package/template/javascript/default/index.html +10 -13
- package/template/javascript/default/package.json +6 -3
- package/template/javascript/default/vite.config.mjs +7 -0
- package/template/javascript/essentials/package.json +0 -1
- package/template/javascript/essentials/src/App.vue +9 -0
- package/template/javascript/essentials/src/layouts/default.vue +4 -6
- package/template/javascript/essentials/vite.config.mjs +7 -0
- package/template/typescript/base/env.d.ts +2 -0
- package/template/typescript/base/eslint.config.js +36 -0
- package/template/typescript/base/package.json +5 -9
- package/template/typescript/base/vite.config.mts +7 -0
- package/template/typescript/default/_editorconfig +4 -3
- package/template/typescript/default/env.d.ts +1 -0
- package/template/typescript/default/index.html +7 -10
- package/template/typescript/default/package.json +18 -10
- package/template/typescript/default/tsconfig.app.json +14 -0
- package/template/typescript/default/tsconfig.json +8 -28
- package/template/typescript/default/tsconfig.node.json +14 -4
- package/template/typescript/default/vite.config.mts +7 -0
- package/template/typescript/essentials/env.d.ts +3 -0
- package/template/typescript/essentials/package.json +0 -1
- package/template/typescript/essentials/src/App.vue +9 -0
- package/template/typescript/essentials/src/layouts/default.vue +4 -6
- package/template/typescript/essentials/vite.config.mts +7 -0
- package/template/typescript/nuxt/app-layout.vue +5 -0
- package/template/typescript/nuxt/app.vue +9 -0
- package/template/typescript/nuxt/components/AppFooter.vue +79 -0
- package/template/typescript/nuxt/components/HelloWorld.vue +153 -0
- package/template/typescript/nuxt/layouts/default.vue +9 -0
- package/template/typescript/nuxt/modules/vuetify.ts +125 -0
- package/template/typescript/nuxt/pages/index.vue +8 -0
- package/template/typescript/nuxt/plugins/vuetify-nuxt.ts +8 -0
- package/template/typescript/nuxt/plugins/vuetify.ts +14 -0
- package/template/typescript/nuxt/vuetify.config.ts +8 -0
- package/template/javascript/base/_eslintrc.js +0 -10
- package/template/javascript/essentials/_eslintrc.js +0 -19
- package/template/typescript/base/_eslintrc.js +0 -20
- package/template/typescript/base/tsconfig.json +0 -32
- package/template/typescript/default/src/vite-env.d.ts +0 -7
- package/template/typescript/essentials/_eslintrc.js +0 -20
- package/template/typescript/essentials/tsconfig.json +0 -33
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const items = shallowRef([
|
|
3
|
+
{
|
|
4
|
+
title: 'Vuetify Documentation',
|
|
5
|
+
icon: `$vuetify`,
|
|
6
|
+
href: 'https://vuetifyjs.com/',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
title: 'Vuetify Support',
|
|
10
|
+
icon: 'mdi-shield-star-outline',
|
|
11
|
+
href: 'https://support.vuetifyjs.com/',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
title: 'Vuetify X',
|
|
15
|
+
icon: ['M2.04875 3.00002L9.77052 13.3248L1.99998 21.7192H3.74882L10.5519 14.3697L16.0486 21.7192H22L13.8437 10.8137L21.0765 3.00002H19.3277L13.0624 9.76874L8.0001 3.00002H2.04875ZM4.62054 4.28821H7.35461L19.4278 20.4308H16.6937L4.62054 4.28821Z'],
|
|
16
|
+
href: 'https://x.com/vuetifyjs',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
title: 'Vuetify GitHub',
|
|
20
|
+
icon: `mdi-github`,
|
|
21
|
+
href: 'https://github.com/vuetifyjs/vuetify',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: 'Vuetify Discord',
|
|
25
|
+
icon: ['M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z'],
|
|
26
|
+
href: 'https://community.vuetifyjs.com/',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: 'Vuetify Reddit',
|
|
30
|
+
icon: `mdi-reddit`,
|
|
31
|
+
href: 'https://reddit.com/r/vuetifyjs',
|
|
32
|
+
},
|
|
33
|
+
])
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<v-footer height="40" app>
|
|
38
|
+
<NuxtLink
|
|
39
|
+
v-for="item in items"
|
|
40
|
+
:key="item.title"
|
|
41
|
+
:href="item.href"
|
|
42
|
+
:title="item.title"
|
|
43
|
+
class="d-inline-block mx-2 social-link"
|
|
44
|
+
rel="noopener noreferrer"
|
|
45
|
+
target="_blank"
|
|
46
|
+
>
|
|
47
|
+
<v-icon
|
|
48
|
+
:icon="item.icon"
|
|
49
|
+
:size="item.icon === '$vuetify' ? 24 : 16"
|
|
50
|
+
/>
|
|
51
|
+
</NuxtLink>
|
|
52
|
+
|
|
53
|
+
<div
|
|
54
|
+
class="text-caption text-disabled"
|
|
55
|
+
style="position: absolute; right: 16px;"
|
|
56
|
+
>
|
|
57
|
+
© 2016-{{ (new Date()).getFullYear() }} <span class="d-none d-sm-inline-block">Vuetify, LLC</span>
|
|
58
|
+
—
|
|
59
|
+
<NuxtLink
|
|
60
|
+
class="text-decoration-none on-surface"
|
|
61
|
+
href="https://vuetifyjs.com/about/licensing/"
|
|
62
|
+
rel="noopener noreferrer"
|
|
63
|
+
target="_blank"
|
|
64
|
+
>
|
|
65
|
+
MIT License
|
|
66
|
+
</NuxtLink>
|
|
67
|
+
</div>
|
|
68
|
+
</v-footer>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<style scoped lang="sass">
|
|
72
|
+
.social-link :deep(.v-icon)
|
|
73
|
+
color: rgba(var(--v-theme-on-background), var(--v-disabled-opacity))
|
|
74
|
+
text-decoration: none
|
|
75
|
+
transition: .2s ease-in-out
|
|
76
|
+
|
|
77
|
+
&:hover
|
|
78
|
+
color: rgba(25, 118, 210, 1)
|
|
79
|
+
</style>
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-container class="fill-height">
|
|
3
|
+
<v-responsive
|
|
4
|
+
class="align-centerfill-height mx-auto"
|
|
5
|
+
max-width="900"
|
|
6
|
+
>
|
|
7
|
+
<v-img
|
|
8
|
+
class="mb-4"
|
|
9
|
+
height="150"
|
|
10
|
+
src="~/assets/logo.png"
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
<div class="text-center">
|
|
14
|
+
<div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
|
|
15
|
+
|
|
16
|
+
<h1 class="text-h2 font-weight-bold">Vuetify</h1>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="py-4" />
|
|
20
|
+
|
|
21
|
+
<v-row>
|
|
22
|
+
<v-col cols="12">
|
|
23
|
+
<v-card
|
|
24
|
+
class="py-4"
|
|
25
|
+
color="surface-variant"
|
|
26
|
+
image="https://cdn.vuetifyjs.com/docs/images/one/create/feature.png"
|
|
27
|
+
prepend-icon="mdi-rocket-launch-outline"
|
|
28
|
+
rounded="lg"
|
|
29
|
+
variant="outlined"
|
|
30
|
+
>
|
|
31
|
+
<template #image>
|
|
32
|
+
<v-img position="top right" />
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<template #title>
|
|
36
|
+
<h2 class="text-h5 font-weight-bold">Get started</h2>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<template #subtitle>
|
|
40
|
+
<div class="text-subtitle-1">
|
|
41
|
+
Change this page by updating <v-kbd>{{ `<HelloWorld />` }}</v-kbd> in <v-kbd>components/HelloWorld.vue</v-kbd>.
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<v-overlay
|
|
46
|
+
opacity=".12"
|
|
47
|
+
scrim="primary"
|
|
48
|
+
contained
|
|
49
|
+
model-value
|
|
50
|
+
persistent
|
|
51
|
+
/>
|
|
52
|
+
</v-card>
|
|
53
|
+
</v-col>
|
|
54
|
+
|
|
55
|
+
<v-col cols="6">
|
|
56
|
+
<v-card
|
|
57
|
+
append-icon="mdi-open-in-new"
|
|
58
|
+
class="py-4"
|
|
59
|
+
color="surface-variant"
|
|
60
|
+
href="https://vuetifyjs.com/"
|
|
61
|
+
prepend-icon="mdi-text-box-outline"
|
|
62
|
+
rel="noopener noreferrer"
|
|
63
|
+
rounded="lg"
|
|
64
|
+
subtitle="Learn about all things Vuetify in our documentation."
|
|
65
|
+
target="_blank"
|
|
66
|
+
title="Documentation"
|
|
67
|
+
variant="text"
|
|
68
|
+
>
|
|
69
|
+
<v-overlay
|
|
70
|
+
opacity=".06"
|
|
71
|
+
scrim="primary"
|
|
72
|
+
contained
|
|
73
|
+
model-value
|
|
74
|
+
persistent
|
|
75
|
+
/>
|
|
76
|
+
</v-card>
|
|
77
|
+
</v-col>
|
|
78
|
+
|
|
79
|
+
<v-col cols="6">
|
|
80
|
+
<v-card
|
|
81
|
+
append-icon="mdi-open-in-new"
|
|
82
|
+
class="py-4"
|
|
83
|
+
color="surface-variant"
|
|
84
|
+
href="https://vuetifyjs.com/introduction/why-vuetify/#feature-guides"
|
|
85
|
+
prepend-icon="mdi-star-circle-outline"
|
|
86
|
+
rel="noopener noreferrer"
|
|
87
|
+
rounded="lg"
|
|
88
|
+
subtitle="Explore available framework Features."
|
|
89
|
+
target="_blank"
|
|
90
|
+
title="Features"
|
|
91
|
+
variant="text"
|
|
92
|
+
>
|
|
93
|
+
<v-overlay
|
|
94
|
+
opacity=".06"
|
|
95
|
+
scrim="primary"
|
|
96
|
+
contained
|
|
97
|
+
model-value
|
|
98
|
+
persistent
|
|
99
|
+
/>
|
|
100
|
+
</v-card>
|
|
101
|
+
</v-col>
|
|
102
|
+
|
|
103
|
+
<v-col cols="6">
|
|
104
|
+
<v-card
|
|
105
|
+
append-icon="mdi-open-in-new"
|
|
106
|
+
class="py-4"
|
|
107
|
+
color="surface-variant"
|
|
108
|
+
href="https://vuetifyjs.com/components/all"
|
|
109
|
+
prepend-icon="mdi-widgets-outline"
|
|
110
|
+
rel="noopener noreferrer"
|
|
111
|
+
rounded="lg"
|
|
112
|
+
subtitle="Discover components in the API Explorer."
|
|
113
|
+
target="_blank"
|
|
114
|
+
title="Components"
|
|
115
|
+
variant="text"
|
|
116
|
+
>
|
|
117
|
+
<v-overlay
|
|
118
|
+
opacity=".06"
|
|
119
|
+
scrim="primary"
|
|
120
|
+
contained
|
|
121
|
+
model-value
|
|
122
|
+
persistent
|
|
123
|
+
/>
|
|
124
|
+
</v-card>
|
|
125
|
+
</v-col>
|
|
126
|
+
|
|
127
|
+
<v-col cols="6">
|
|
128
|
+
<v-card
|
|
129
|
+
append-icon="mdi-open-in-new"
|
|
130
|
+
class="py-4"
|
|
131
|
+
color="surface-variant"
|
|
132
|
+
href="https://discord.vuetifyjs.com"
|
|
133
|
+
prepend-icon="mdi-account-group-outline"
|
|
134
|
+
rel="noopener noreferrer"
|
|
135
|
+
rounded="lg"
|
|
136
|
+
subtitle="Connect with Vuetify developers."
|
|
137
|
+
target="_blank"
|
|
138
|
+
title="Community"
|
|
139
|
+
variant="text"
|
|
140
|
+
>
|
|
141
|
+
<v-overlay
|
|
142
|
+
opacity=".06"
|
|
143
|
+
scrim="primary"
|
|
144
|
+
contained
|
|
145
|
+
model-value
|
|
146
|
+
persistent
|
|
147
|
+
/>
|
|
148
|
+
</v-card>
|
|
149
|
+
</v-col>
|
|
150
|
+
</v-row>
|
|
151
|
+
</v-responsive>
|
|
152
|
+
</v-container>
|
|
153
|
+
</template>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineNuxtModule } from '@nuxt/kit'
|
|
2
|
+
import type { Options as ModuleOptions } from '@vuetify/loader-shared'
|
|
3
|
+
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
4
|
+
import path from 'upath'
|
|
5
|
+
import { resolveVuetifyBase, isObject } from '@vuetify/loader-shared'
|
|
6
|
+
import { pathToFileURL } from 'node:url'
|
|
7
|
+
|
|
8
|
+
export type { ModuleOptions }
|
|
9
|
+
|
|
10
|
+
// WARNING: Remove the file from modules directory if you install vuetify-nuxt-module
|
|
11
|
+
export default defineNuxtModule<ModuleOptions>({
|
|
12
|
+
meta: {
|
|
13
|
+
name: 'vuetify-module',
|
|
14
|
+
configKey: 'vuetify',
|
|
15
|
+
},
|
|
16
|
+
defaults: () => ({ styles: true }),
|
|
17
|
+
setup(options, nuxt) {
|
|
18
|
+
let configFile: string | undefined
|
|
19
|
+
const vuetifyBase = resolveVuetifyBase()
|
|
20
|
+
const noneFiles = new Set<string>()
|
|
21
|
+
let isNone = false
|
|
22
|
+
let sassVariables = false
|
|
23
|
+
const PREFIX = 'vuetify-styles/'
|
|
24
|
+
const SSR_PREFIX = `/@${PREFIX}`
|
|
25
|
+
|
|
26
|
+
nuxt.hook('vite:extendConfig', (viteInlineConfig) => {
|
|
27
|
+
// add vuetify transformAssetUrls
|
|
28
|
+
viteInlineConfig.vue ??= {}
|
|
29
|
+
viteInlineConfig.vue.template ??= {}
|
|
30
|
+
viteInlineConfig.vue.template.transformAssetUrls = transformAssetUrls
|
|
31
|
+
|
|
32
|
+
viteInlineConfig.plugins = viteInlineConfig.plugins ?? []
|
|
33
|
+
viteInlineConfig.plugins.push(vuetify({
|
|
34
|
+
autoImport: options.autoImport,
|
|
35
|
+
styles: true,
|
|
36
|
+
}))
|
|
37
|
+
|
|
38
|
+
viteInlineConfig.css ??= {}
|
|
39
|
+
viteInlineConfig.css.preprocessorOptions ??= {}
|
|
40
|
+
viteInlineConfig.css.preprocessorOptions.sass ??= {}
|
|
41
|
+
viteInlineConfig.css.preprocessorOptions.sass.api = 'modern-compiler'
|
|
42
|
+
|
|
43
|
+
viteInlineConfig.plugins.push({
|
|
44
|
+
name: 'vuetify:nuxt:styles',
|
|
45
|
+
enforce: 'pre',
|
|
46
|
+
async configResolved (config) {
|
|
47
|
+
if (isObject(options.styles)) {
|
|
48
|
+
sassVariables = true
|
|
49
|
+
if (path.isAbsolute(options.styles.configFile)) {
|
|
50
|
+
configFile = path.resolve(options.styles.configFile)
|
|
51
|
+
} else {
|
|
52
|
+
configFile = path.resolve(path.join(config.root || process.cwd(), options.styles.configFile))
|
|
53
|
+
}
|
|
54
|
+
configFile = pathToFileURL(configFile).href
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
isNone = options.styles === 'none'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
async resolveId (source, importer, { custom, ssr }) {
|
|
61
|
+
if (source.startsWith(PREFIX) || source.startsWith(SSR_PREFIX)) {
|
|
62
|
+
if (source.endsWith('.sass')) {
|
|
63
|
+
return source
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const idx = source.indexOf('?')
|
|
67
|
+
return idx > -1 ? source.slice(0, idx) : source
|
|
68
|
+
}
|
|
69
|
+
if (
|
|
70
|
+
source === 'vuetify/styles' || (
|
|
71
|
+
importer &&
|
|
72
|
+
source.endsWith('.css') &&
|
|
73
|
+
isSubdir(vuetifyBase, path.isAbsolute(source) ? source : importer)
|
|
74
|
+
)
|
|
75
|
+
) {
|
|
76
|
+
if (options.styles === 'sass') {
|
|
77
|
+
const target = source.replace(/\.css$/, '.sass')
|
|
78
|
+
return this.resolve(target, importer, { skipSelf: true, custom })
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const resolution = await this.resolve(source, importer, { skipSelf: true, custom })
|
|
82
|
+
|
|
83
|
+
if (!resolution)
|
|
84
|
+
return undefined
|
|
85
|
+
|
|
86
|
+
const target = resolution.id.replace(/\.css$/, '.sass')
|
|
87
|
+
if (isNone) {
|
|
88
|
+
noneFiles.add(target)
|
|
89
|
+
return target
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return `${ssr ? SSR_PREFIX: PREFIX}${path.relative(vuetifyBase, target)}`
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return undefined
|
|
96
|
+
},
|
|
97
|
+
load(id){
|
|
98
|
+
if (sassVariables) {
|
|
99
|
+
const target = id.startsWith(PREFIX)
|
|
100
|
+
? path.resolve(vuetifyBase, id.slice(PREFIX.length))
|
|
101
|
+
: id.startsWith(SSR_PREFIX)
|
|
102
|
+
? path.resolve(vuetifyBase, id.slice(SSR_PREFIX.length))
|
|
103
|
+
: undefined
|
|
104
|
+
|
|
105
|
+
if (target) {
|
|
106
|
+
return {
|
|
107
|
+
code: `@use "${configFile}"\n@use "${pathToFileURL(target).href}"`,
|
|
108
|
+
map: {
|
|
109
|
+
mappings: '',
|
|
110
|
+
},
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return isNone && noneFiles.has(id) ? '' : undefined
|
|
116
|
+
},
|
|
117
|
+
})
|
|
118
|
+
})
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
function isSubdir (root: string, test: string) {
|
|
123
|
+
const relative = path.relative(root, test)
|
|
124
|
+
return relative && !relative.startsWith('..') && !path.isAbsolute(relative)
|
|
125
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
2
|
+
// check https://vuetify-nuxt-module.netlify.app/guide/nuxt-runtime-hooks.html
|
|
3
|
+
nuxtApp.hook('vuetify:before-create', (options) => {
|
|
4
|
+
if (import.meta.client) {
|
|
5
|
+
console.log('vuetify:before-create', options)
|
|
6
|
+
}
|
|
7
|
+
})
|
|
8
|
+
})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createVuetify } from 'vuetify'
|
|
2
|
+
|
|
3
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
4
|
+
const vuetify = createVuetify({
|
|
5
|
+
// WARNING: when switching ssr option in nuxt.config.ts file you need to manually change it here
|
|
6
|
+
ssr: true,
|
|
7
|
+
// your Vuetify options here
|
|
8
|
+
theme: {
|
|
9
|
+
defaultTheme: 'dark',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
nuxtApp.vueApp.use(vuetify);
|
|
14
|
+
})
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* .eslint.js
|
|
3
|
-
*
|
|
4
|
-
* ESLint configuration file.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
root: true,
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
extends: [
|
|
13
|
-
'vuetify',
|
|
14
|
-
'./.eslintrc-auto-import.json',
|
|
15
|
-
],
|
|
16
|
-
rules: {
|
|
17
|
-
'vue/multi-word-component-names': 'off',
|
|
18
|
-
},
|
|
19
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* .eslint.js
|
|
3
|
-
*
|
|
4
|
-
* ESLint configuration file.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
root: true,
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
extends: [
|
|
13
|
-
'plugin:vue/vue3-essential',
|
|
14
|
-
'eslint:recommended',
|
|
15
|
-
'@vue/eslint-config-typescript',
|
|
16
|
-
],
|
|
17
|
-
rules: {
|
|
18
|
-
'vue/multi-word-component-names': 'off',
|
|
19
|
-
},
|
|
20
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"jsx": "preserve",
|
|
5
|
-
"lib": ["DOM", "ESNext"],
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"moduleResolution": "bundler",
|
|
9
|
-
"paths": {
|
|
10
|
-
"@/*": ["src/*"]
|
|
11
|
-
},
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"types": [
|
|
14
|
-
"vite/client",
|
|
15
|
-
"unplugin-vue-router/client"
|
|
16
|
-
],
|
|
17
|
-
"allowJs": true,
|
|
18
|
-
"strict": true,
|
|
19
|
-
"strictNullChecks": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"esModuleInterop": true,
|
|
22
|
-
"forceConsistentCasingInFileNames": true,
|
|
23
|
-
"isolatedModules": true,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"src/**/*",
|
|
28
|
-
"src/**/*.vue"
|
|
29
|
-
],
|
|
30
|
-
"exclude": ["dist", "node_modules", "cypress"],
|
|
31
|
-
"references": [{ "path": "./tsconfig.node.json" }],
|
|
32
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* .eslint.js
|
|
3
|
-
*
|
|
4
|
-
* ESLint configuration file.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
root: true,
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
extends: [
|
|
13
|
-
'vuetify',
|
|
14
|
-
'@vue/eslint-config-typescript',
|
|
15
|
-
'./.eslintrc-auto-import.json',
|
|
16
|
-
],
|
|
17
|
-
rules: {
|
|
18
|
-
'vue/multi-word-component-names': 'off',
|
|
19
|
-
},
|
|
20
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"jsx": "preserve",
|
|
5
|
-
"lib": ["DOM", "ESNext"],
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"moduleResolution": "bundler",
|
|
9
|
-
"paths": {
|
|
10
|
-
"@/*": ["src/*"]
|
|
11
|
-
},
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"types": [
|
|
14
|
-
"vite/client",
|
|
15
|
-
"vite-plugin-vue-layouts/client",
|
|
16
|
-
"unplugin-vue-router/client"
|
|
17
|
-
],
|
|
18
|
-
"allowJs": true,
|
|
19
|
-
"strict": true,
|
|
20
|
-
"strictNullChecks": true,
|
|
21
|
-
"noUnusedLocals": true,
|
|
22
|
-
"esModuleInterop": true,
|
|
23
|
-
"forceConsistentCasingInFileNames": true,
|
|
24
|
-
"isolatedModules": true,
|
|
25
|
-
"skipLibCheck": true
|
|
26
|
-
},
|
|
27
|
-
"include": [
|
|
28
|
-
"src/**/*",
|
|
29
|
-
"src/**/*.vue"
|
|
30
|
-
],
|
|
31
|
-
"exclude": ["dist", "node_modules", "cypress"],
|
|
32
|
-
"references": [{ "path": "./tsconfig.node.json" }],
|
|
33
|
-
}
|