Astro
Package: @santi020k/eslint-config-astro
Use the Astro package when the project contains .astro components and embedded scripts that need the shared ESLint baseline.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-astronpm install -D @santi020k/eslint-config-astroyarn add -D @santi020k/eslint-config-astrobun add -d @santi020k/eslint-config-astroConfigure
Section titled “Configure”import astro from '@santi020k/eslint-config-astro'import { eslintConfig } from '@santi020k/eslint-config-basic'
export default eslintConfig({ frameworks: { astro }, typescript: true})What It Adds
Section titled “What It Adds”- Astro-specific rules through a dedicated framework package.
- Support for embedded script handling in
.astrofiles. - Compatibility with the TypeScript package’s virtual-file protections.
- Astro projects usually enable
typescript: true, even when most code is inside.astrofiles. - The TypeScript package disables type-checked rules in generated virtual files where full project-service semantics are not reliable.
Repository Links
Section titled “Repository Links”- Source Package: packages/astro
- Playground: packages/playground/astro
Related Pages
Section titled “Related Pages”Did this page help?
One click helps us spot documentation that needs another pass. No personal data is sent.