chore(tooling): extend from turbo config

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-22 20:22:36 +01:00
parent f856d3d04c
commit 8c22ce0bbb
3 changed files with 4 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ export default route(function (/* { store, ssrContext } */) {
? createWebHistory
: createWebHashHistory
const Router = createRouter({
return createRouter({
scrollBehavior: () => ({ left: 0, top: 0 }),
routes,
@@ -28,6 +28,4 @@ export default route(function (/* { store, ssrContext } */) {
// quasar.conf.js -> build -> publicPath
history: createHistory(process.env.VUE_ROUTER_BASE),
})
return Router
})

View File

@@ -1,5 +1,5 @@
module.exports = {
extends: ['@antfu', 'plugin:prettier/recommended'],
extends: ['@antfu', 'plugin:prettier/recommended', 'turbo'],
plugins: ['prettier'],
rules: {
'vue/no-setup-props-destructure': 0,

View File

@@ -29,5 +29,6 @@
"dependsOn": ["^build"],
"outputs": ["dist/**"]
}
}
},
"globalEnv": ["VERCEL_ANALYTICS_ID", "ALGOLIA_API_KEY", "SERVER", "VUE_ROUTER_MODE", "VUE_ROUTER_BASE"]
}