From 8c22ce0bbbf32b3f683b2a5a34fae0a80088eb1f Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 22 Feb 2023 20:22:36 +0100 Subject: [PATCH] chore(tooling): extend from turbo config Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- examples/quasar/src/router/index.ts | 4 +--- tooling/eslint-config/index.js | 2 +- turbo.json | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/quasar/src/router/index.ts b/examples/quasar/src/router/index.ts index 91e11ac7..1e2ef844 100644 --- a/examples/quasar/src/router/index.ts +++ b/examples/quasar/src/router/index.ts @@ -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 }) diff --git a/tooling/eslint-config/index.js b/tooling/eslint-config/index.js index 90c5419f..f0448908 100644 --- a/tooling/eslint-config/index.js +++ b/tooling/eslint-config/index.js @@ -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, diff --git a/turbo.json b/turbo.json index 1f355c73..f33f5961 100644 --- a/turbo.json +++ b/turbo.json @@ -29,5 +29,6 @@ "dependsOn": ["^build"], "outputs": ["dist/**"] } - } + }, + "globalEnv": ["VERCEL_ANALYTICS_ID", "ALGOLIA_API_KEY", "SERVER", "VUE_ROUTER_MODE", "VUE_ROUTER_BASE"] }