[ci] format

This commit is contained in:
FredKSchott 2022-03-26 00:12:26 +00:00 committed by GitHub Actions
parent f268451268
commit 8b1b4315b8
2 changed files with 11 additions and 9 deletions

View file

@ -423,7 +423,7 @@ export interface AstroUserConfig {
* Default: false * Default: false
*/ */
experimentalIntegrations?: boolean; experimentalIntegrations?: boolean;
/** /**
* @docs * @docs
* @name vite * @name vite

View file

@ -210,14 +210,16 @@ export async function validateConfig(userConfig: any, root: string): Promise<Ast
}; };
// Final-Pass Validation (perform checks that require the full config object) // Final-Pass Validation (perform checks that require the full config object)
if (!result.experimentalIntegrations && !result.integrations.every((int) => int.name.startsWith('@astrojs/'))) { if (!result.experimentalIntegrations && !result.integrations.every((int) => int.name.startsWith('@astrojs/'))) {
throw new Error([ throw new Error(
`Astro integrations are still experimental.`, [
``, `Astro integrations are still experimental.`,
`Only official "@astrojs/*" integrations are currently supported.`, ``,
`To enable 3rd-party integrations, use the "--experimental-integrations" flag.`, `Only official "@astrojs/*" integrations are currently supported.`,
`Breaking changes may occur in this API before Astro v1.0 is released.`, `To enable 3rd-party integrations, use the "--experimental-integrations" flag.`,
`` `Breaking changes may occur in this API before Astro v1.0 is released.`,
].join('\n')); ``,
].join('\n')
);
} }
// If successful, return the result as a verified AstroConfig object. // If successful, return the result as a verified AstroConfig object.
return result; return result;