[ci] yarn format

This commit is contained in:
FredKSchott 2021-08-23 21:08:16 +00:00 committed by GitHub Actions
parent f9cd031033
commit 69272dc8d1
6 changed files with 10 additions and 11 deletions

View file

@ -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} */ (
{
// ...
}
);

View file

@ -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'],

View file

@ -15,7 +15,6 @@ export interface ManifestData {
routes: RouteData[];
}
export interface JsxItem {
name: string;
jsx: string;

View file

@ -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<typeof AstroConfigSchema> {
markdownOptions: Partial<AstroMarkdownOptions>;
}
}

View file

@ -1 +1 @@
export {AstroConfig, AstroUserConfig} from './config';
export { AstroConfig, AstroUserConfig } from './config';

View file

@ -44,7 +44,6 @@ export function validateGetStaticPathsResult(result: GetStaticPathsResult, loggi
});
}
/** Add / to beginning of string (but dont 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 dont double-up) */
export function addTrailingSlash(path: string) {
return path.replace(/\/?$/, '/');
}
}