Skip to content

Commit 8c22ce0

Browse files
committed
chore(tooling): extend from turbo config
Signed-off-by: braks <[email protected]>
1 parent f856d3d commit 8c22ce0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

examples/quasar/src/router/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default route(function (/* { store, ssrContext } */) {
1919
? createWebHistory
2020
: createWebHashHistory
2121

22-
const Router = createRouter({
22+
return createRouter({
2323
scrollBehavior: () => ({ left: 0, top: 0 }),
2424
routes,
2525

@@ -28,6 +28,4 @@ export default route(function (/* { store, ssrContext } */) {
2828
// quasar.conf.js -> build -> publicPath
2929
history: createHistory(process.env.VUE_ROUTER_BASE),
3030
})
31-
32-
return Router
3331
})

tooling/eslint-config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ['@antfu', 'plugin:prettier/recommended'],
2+
extends: ['@antfu', 'plugin:prettier/recommended', 'turbo'],
33
plugins: ['prettier'],
44
rules: {
55
'vue/no-setup-props-destructure': 0,

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
"dependsOn": ["^build"],
3030
"outputs": ["dist/**"]
3131
}
32-
}
32+
},
33+
"globalEnv": ["VERCEL_ANALYTICS_ID", "ALGOLIA_API_KEY", "SERVER", "VUE_ROUTER_MODE", "VUE_ROUTER_BASE"]
3334
}

0 commit comments

Comments
 (0)