From a809901535f1fa4f09175877f3ae28c9cfbf801b Mon Sep 17 00:00:00 2001 From: antony Date: Sat, 21 Dec 2024 07:53:23 +0700 Subject: [PATCH] chore: prettier --- .prettierrc | 5 +++++ host/components/HostComponent.vue | 4 ++-- host/nuxt.config.ts | 16 ++++++++-------- remote/nuxt.config.ts | 16 ++++++++-------- 4 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..8bf75b9 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "tabWidth": 2, + "trailingComma": "none", + "semi": false +} diff --git a/host/components/HostComponent.vue b/host/components/HostComponent.vue index 2431e37..339c727 100644 --- a/host/components/HostComponent.vue +++ b/host/components/HostComponent.vue @@ -7,6 +7,6 @@ \ No newline at end of file + diff --git a/host/nuxt.config.ts b/host/nuxt.config.ts index e4bb789..8d1c58c 100644 --- a/host/nuxt.config.ts +++ b/host/nuxt.config.ts @@ -1,22 +1,22 @@ -import { defineNuxtConfig } from 'nuxt/config' -import federation from '@originjs/vite-plugin-federation' +import { defineNuxtConfig } from "nuxt/config" +import federation from "@originjs/vite-plugin-federation" export default defineNuxtConfig({ - compatibilityDate: '2024-04-03', + compatibilityDate: "2024-04-03", devtools: { enabled: false }, ssr: false, vite: { plugins: [ federation({ - name: 'host-app', + name: "host-app", remotes: { - remote: 'http://localhost:3001/_nuxt/remoteEntry.js', - }, + remote: "http://localhost:3001/_nuxt/remoteEntry.js" + } // shared: ['vue'] }) ], build: { - target: 'esnext' + target: "esnext" } } -}) \ No newline at end of file +}) diff --git a/remote/nuxt.config.ts b/remote/nuxt.config.ts index b2c61ec..b44cae9 100644 --- a/remote/nuxt.config.ts +++ b/remote/nuxt.config.ts @@ -1,24 +1,24 @@ -import { defineNuxtConfig } from 'nuxt/config' -import federation from '@originjs/vite-plugin-federation' +import { defineNuxtConfig } from "nuxt/config" +import federation from "@originjs/vite-plugin-federation" export default defineNuxtConfig({ - compatibilityDate: '2024-04-03', + compatibilityDate: "2024-04-03", devtools: { enabled: false }, ssr: false, vite: { plugins: [ federation({ - name: 'remote-app', - filename: 'remoteEntry.js', + name: "remote-app", + filename: "remoteEntry.js", exposes: { - './RemoteComponent': './components/RemoteComponent.vue' + "./RemoteComponent": "./components/RemoteComponent.vue" }, shared: [] // shared: ['vue'] }) ], build: { - target: 'esnext' + target: "esnext" } } -}) \ No newline at end of file +})