astro/valid-compile

disallow warnings when compiling.

  • ⚠️ This rule was deprecated.

πŸ“– Rule Details

This rule uses compiler diagnostics exposed by astro-eslint-parser to report warnings while ESLint processes individual .astro files. It is now deprecated and is no longer included in the recommended config.

Use Astro’s astro check command instead. It runs project-wide diagnostics, including type checking in .astro files, reports errors to the console, and exits with status code 1 when errors are found. The command is designed for use in CI workflows.

npx astro check

πŸ”§ Options

Nothing.

πŸ“Œ Note

Remove this rule from your ESLint configuration and run astro check separately instead.

πŸ“š Further Reading

πŸš€ Version

This rule was introduced in eslint-plugin-astro v0.21.0

πŸ” Implementation



Edit this page