Astro components: the recommended and accessibility rules for frontmatter, markup, and scripts, and a type check of each component. It requires javascript.
| Check |
Stage |
Level |
What it does |
astro/astro-check |
push |
recommended |
Runs astro check over the scope: the type errors and warnings of every Astro component. |
gspot selects it in a scope with file extensions .astro, or dependencies astro.
| 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. |
| Setting |
Value |
tools.eslint.import_extension |
"extensionless" |
| Rule file |
Installed when |
.gspot/configurations/framework/astro/rules/ASTRO.md |
Always |
| 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 |