Repository: withastro/astro
File: packages/astro/src/core/errors/errors-data.ts (TypeScript)

Code before:
} satisfies ErrorData;

/**
 * @docs
 * @description
 * The CSP feature isn't enabled
 * @message
 * The `experimental.csp` configuration isn't enabled.
 */
export const CspNotEnabled = {
	name: 'CspNotEnabled',
	title: "CSP feature isn't enabled",
	message: "The `experimental.csp` configuration isn't enabled.",
} satisfies ErrorData;

/**
 * @docs
 * @description
 * Unavailable Astro global property in getStaticPaths
 * @message
 * This property on the Astro global is not available in getStaticPaths
 */
export const UnavailableAstroGlobalProperty = {
	name: 'UnavailableAstroGlobalProperty',
	title: 'Unavailable Astro global property in getStaticPaths',
	message: (name: string) => `"Astro.${name}" is not available in getStaticPaths`,
} satisfies ErrorData;

/**
 * @docs
 * @kind heading
 * @name CSS Errors
 */
// CSS Errors
/**
 * @docs
 * @see
 * 	- [Styles and CSS](https://docs.astro.build/en/guides/styling/)
 * @description
 * Astro encountered an unknown error while parsing your CSS. Oftentimes, this is caused by a syntax error and the error message should contain more information.
 */
export const UnknownCSSError = {
	name: 'UnknownCSSError',
	title: 'Unknown CSS Error.',
} satisfies ErrorData;
/**
 * @docs
 * @message
 * **Example error messages:**<br/>
 * CSSSyntaxError: Missed semicolon<br/>
 * CSSSyntaxError: Unclosed string<br/>

Review comment (suggestion):
`message` is going to be rendered as a paragraph, so it needs a full stop at the end
```suggestion
 * This property on the Astro global is not available in getStaticPaths().
 */
export const UnavailableAstroGlobalProperty = {
	name: 'UnavailableAstroGlobalProperty',
	title: 'Unavailable Astro global property in getStaticPaths()',
	message: (name: string) => `"Astro.${name}" is not available in getStaticPaths().`,
```

Code after:
} satisfies ErrorData;

/**
 * @docs
 * @description
 * The CSP feature isn't enabled
 * @message
 * The `experimental.csp` configuration isn't enabled.
 */
export const CspNotEnabled = {
	name: 'CspNotEnabled',
	title: "CSP feature isn't enabled",
	message: "The `experimental.csp` configuration isn't enabled.",
} satisfies ErrorData;

/**
 * @docs
 * @description
 * Unavailable Astro global in getStaticPaths
 * @message
 * The Astro global is not available in getStaticPaths().
 */
export const UnavailableAstroGlobal = {
	name: 'UnavailableAstroGlobal',
	title: 'Unavailable Astro global in getStaticPaths()',
	message: (name: string) => `The Astro global is not available in this scope. Please remove "Astro.${name}" from your getStaticPaths() function.`,
} satisfies ErrorData;

/**
 * @docs
 * @kind heading
 * @name CSS Errors
 */
// CSS Errors
/**
 * @docs
 * @see
 * 	- [Styles and CSS](https://docs.astro.build/en/guides/styling/)
 * @description
 * Astro encountered an unknown error while parsing your CSS. Oftentimes, this is caused by a syntax error and the error message should contain more information.
 */
export const UnknownCSSError = {
	name: 'UnknownCSSError',
	title: 'Unknown CSS Error.',
} satisfies ErrorData;
/**
 * @docs
 * @message
 * **Example error messages:**<br/>
 * CSSSyntaxError: Missed semicolon<br/>
 * CSSSyntaxError: Unclosed string<br/>