# astro

> Astro components: the recommended and accessibility rules for frontmatter, markup, and scripts, and a type check of each component.

Astro components: the recommended and accessibility rules for frontmatter, markup, and scripts, and a type check of each component. It requires [`javascript`](/reference/configurations/javascript/).

## Checks

| Check                                                       | Stage  | Level         | What it does                                                                            |
| ----------------------------------------------------------- | ------ | ------------- | --------------------------------------------------------------------------------------- |
| [`astro/astro-check`](/reference/checks/astro/astro-check/) | `push` | `recommended` | Runs astro check over the scope: the type errors and warnings of every Astro component. |

## Selected when

gspot selects it in a scope with file extensions `.astro`, or dependencies `astro`.

## Lint rules turned off

| Lint rules               | Files                                              | Why                                                                                                                                                                                                                |
| ------------------------ | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `gspot/no-trivial-files` | `**/*.astro`, `**/*.astro/*.ts`, `**/*.astro/*.js` | A component is markup, never a file that only forwards: a script that only imports a module is how Astro bundles client code, and Astro reads the props of a component from the Props type in its own frontmatter. |

## Defaults set for other configurations

| Setting                         | Value             |
| ------------------------------- | ----------------- |
| `tools.eslint.import_extension` | `"extensionless"` |

## Rules for coding agents

| Rule file                                              | Installed when |
| ------------------------------------------------------ | -------------- |
| `.gspot/configurations/framework/astro/rules/ASTRO.md` | Always         |

## Tools and versions

| Tool                   | Version  |
| ---------------------- | -------- |
| eslint-plugin-astro    | `1.7.0`  |
| eslint-plugin-jsx-a11y | `6.10.2` |
| astro-check            | `0.9.10` |
| prettier-plugin-astro  | `1.0.1`  |
