[ci] yarn format
This commit is contained in:
parent
f9cd031033
commit
69272dc8d1
6 changed files with 10 additions and 11 deletions
|
@ -7,6 +7,8 @@
|
||||||
// You can disable this by removing "@ts-check" and `@type` comments below.
|
// You can disable this by removing "@ts-check" and `@type` comments below.
|
||||||
|
|
||||||
// @ts-check
|
// @ts-check
|
||||||
export default /** @type {import('astro').AstroUserConfig} */ ({
|
export default /** @type {import('astro').AstroUserConfig} */ (
|
||||||
// ...
|
{
|
||||||
});
|
// ...
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
export default /** @type {import('astro').AstroUserConfig} */ ({
|
export default /** @type {import('astro').AstroUserConfig} */ ({
|
||||||
// Enable Tailwind by telling Astro where your Tailwind config file lives.
|
// Enable Tailwind by telling Astro where your Tailwind config file lives.
|
||||||
devOptions: {
|
devOptions: {
|
||||||
tailwindConfig: './tailwind.config.js',
|
tailwindConfig: './tailwind.config.js',
|
||||||
},
|
},
|
||||||
// Enable the Preact renderer to support Preact JSX components.
|
// Enable the Preact renderer to support Preact JSX components.
|
||||||
renderers: ['@astrojs/renderer-preact'],
|
renderers: ['@astrojs/renderer-preact'],
|
||||||
|
|
|
@ -15,7 +15,6 @@ export interface ManifestData {
|
||||||
routes: RouteData[];
|
routes: RouteData[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface JsxItem {
|
export interface JsxItem {
|
||||||
name: string;
|
name: string;
|
||||||
jsx: string;
|
jsx: string;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { AstroConfigSchema } from '../config';
|
||||||
import type { z } from 'zod';
|
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.
|
* This is the type interface for your astro.config.mjs default export.
|
||||||
*/
|
*/
|
||||||
export interface AstroUserConfig {
|
export interface AstroUserConfig {
|
||||||
|
@ -81,7 +81,6 @@ export interface AstroUserConfig {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// NOTE(fks): We choose to keep our hand-generated AstroUserConfig interface so that
|
// 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.
|
// 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
|
// 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> {
|
export interface AstroConfig extends z.output<typeof AstroConfigSchema> {
|
||||||
markdownOptions: Partial<AstroMarkdownOptions>;
|
markdownOptions: Partial<AstroMarkdownOptions>;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
export {AstroConfig, AstroUserConfig} from './config';
|
export { AstroConfig, AstroUserConfig } from './config';
|
||||||
|
|
|
@ -44,7 +44,6 @@ export function validateGetStaticPathsResult(result: GetStaticPathsResult, loggi
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Add / to beginning of string (but don’t double-up) */
|
/** Add / to beginning of string (but don’t double-up) */
|
||||||
export function addLeadingSlash(path: string) {
|
export function addLeadingSlash(path: string) {
|
||||||
return path.replace(/^\/?/, '/');
|
return path.replace(/^\/?/, '/');
|
||||||
|
@ -53,4 +52,4 @@ export function addLeadingSlash(path: string) {
|
||||||
/** Add / to the end of string (but don’t double-up) */
|
/** Add / to the end of string (but don’t double-up) */
|
||||||
export function addTrailingSlash(path: string) {
|
export function addTrailingSlash(path: string) {
|
||||||
return path.replace(/\/?$/, '/');
|
return path.replace(/\/?$/, '/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue