From 69272dc8d11e1128786b84ff3e4dedb91676d092 Mon Sep 17 00:00:00 2001 From: FredKSchott Date: Mon, 23 Aug 2021 21:08:16 +0000 Subject: [PATCH] [ci] yarn format --- examples/starter/astro.config.mjs | 8 +++++--- examples/with-tailwindcss/astro.config.mjs | 2 +- packages/astro/src/@types/astro.ts | 1 - packages/astro/src/@types/config.ts | 5 ++--- packages/astro/src/@types/public.ts | 2 +- packages/astro/src/util.ts | 3 +-- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/examples/starter/astro.config.mjs b/examples/starter/astro.config.mjs index 81dadc1ea..dc8566d60 100644 --- a/examples/starter/astro.config.mjs +++ b/examples/starter/astro.config.mjs @@ -7,6 +7,8 @@ // You can disable this by removing "@ts-check" and `@type` comments below. // @ts-check -export default /** @type {import('astro').AstroUserConfig} */ ({ - // ... -}); +export default /** @type {import('astro').AstroUserConfig} */ ( + { + // ... + } +); diff --git a/examples/with-tailwindcss/astro.config.mjs b/examples/with-tailwindcss/astro.config.mjs index e94cfab62..878577d74 100644 --- a/examples/with-tailwindcss/astro.config.mjs +++ b/examples/with-tailwindcss/astro.config.mjs @@ -10,7 +10,7 @@ export default /** @type {import('astro').AstroUserConfig} */ ({ // Enable Tailwind by telling Astro where your Tailwind config file lives. devOptions: { - tailwindConfig: './tailwind.config.js', + tailwindConfig: './tailwind.config.js', }, // Enable the Preact renderer to support Preact JSX components. renderers: ['@astrojs/renderer-preact'], diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 88aabeff4..2e4e018c0 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -15,7 +15,6 @@ export interface ManifestData { routes: RouteData[]; } - export interface JsxItem { name: string; jsx: string; diff --git a/packages/astro/src/@types/config.ts b/packages/astro/src/@types/config.ts index 585f4687b..19103a9c4 100644 --- a/packages/astro/src/@types/config.ts +++ b/packages/astro/src/@types/config.ts @@ -3,7 +3,7 @@ import type { AstroConfigSchema } from '../config'; import type { z } from 'zod'; /** - * The Astro User Config Format: + * The Astro User Config Format: * This is the type interface for your astro.config.mjs default export. */ export interface AstroUserConfig { @@ -81,7 +81,6 @@ export interface AstroUserConfig { }; } - // NOTE(fks): We choose to keep our hand-generated AstroUserConfig interface so that // we can add JSDoc-style documentation and link to the definition file in our repo. // However, Zod comes with the ability to auto-generate AstroConfig from the schema @@ -93,4 +92,4 @@ export interface AstroUserConfig { // } export interface AstroConfig extends z.output { markdownOptions: Partial; -} \ No newline at end of file +} diff --git a/packages/astro/src/@types/public.ts b/packages/astro/src/@types/public.ts index dbce2fee4..89ab25e62 100644 --- a/packages/astro/src/@types/public.ts +++ b/packages/astro/src/@types/public.ts @@ -1 +1 @@ -export {AstroConfig, AstroUserConfig} from './config'; \ No newline at end of file +export { AstroConfig, AstroUserConfig } from './config'; diff --git a/packages/astro/src/util.ts b/packages/astro/src/util.ts index 92f59acdd..c9dd3a6cb 100644 --- a/packages/astro/src/util.ts +++ b/packages/astro/src/util.ts @@ -44,7 +44,6 @@ export function validateGetStaticPathsResult(result: GetStaticPathsResult, loggi }); } - /** Add / to beginning of string (but don’t double-up) */ export function addLeadingSlash(path: string) { return path.replace(/^\/?/, '/'); @@ -53,4 +52,4 @@ export function addLeadingSlash(path: string) { /** Add / to the end of string (but don’t double-up) */ export function addTrailingSlash(path: string) { return path.replace(/\/?$/, '/'); -} \ No newline at end of file +}