diff --git a/.prettierrc.mjs b/.prettierrc.mjs new file mode 100644 index 000000000..0031d6db2 --- /dev/null +++ b/.prettierrc.mjs @@ -0,0 +1,12 @@ +/** @type {import("prettier").Config} */ +export default { + plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"], + overrides: [ + { + files: "*.astro", + options: { + parser: "astro", + }, + }, + ], +}; \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index 1c2c9fa15..546719144 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,9 +3,7 @@ import starlight from '@astrojs/starlight'; import starlightBlog from 'starlight-blog'; import tailwind from "@astrojs/tailwind"; import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc'; - -export const GITHUB_URL = 'https://github.com/sern-handler'; -export const DISCORD_URL = 'https://discord.gg/DwbF5H5JgQ'; +import { GITHUB_URL, DISCORD_URL } from '~/utils/consts.ts'; export default defineConfig({ integrations: [starlight({ diff --git a/bun.lockb b/bun.lockb index c4d2c48b0..f10fa68c7 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 79ee1bf5f..47f09440c 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,9 @@ "typescript": "^5.4.5" }, "devDependencies": { - "@types/bun": "^1.1.1" + "@types/bun": "^1.1.1", + "prettier": "^3.2.5", + "prettier-plugin-astro": "^0.13.0", + "prettier-plugin-tailwindcss": "^0.5.14" } } \ No newline at end of file diff --git a/src/components/DeprecatedIcon.astro b/src/components/DeprecatedIcon.astro index 0ad18cee3..1fb28060b 100644 --- a/src/components/DeprecatedIcon.astro +++ b/src/components/DeprecatedIcon.astro @@ -5,7 +5,7 @@ import { Icon } from "@astrojs/starlight/components";
diff --git a/src/components/Modal.astro b/src/components/Modal.astro index 7deeffd59..d7c9842e2 100644 --- a/src/components/Modal.astro +++ b/src/components/Modal.astro @@ -14,10 +14,10 @@ const modalId = `modal-${Math.random().toString(36).slice(2)}`;
@@ -25,15 +25,15 @@ const modalId = `modal-${Math.random().toString(36).slice(2)}`;