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
bash
npm install -D @santi020k/eslint-config-astroConfigure
js
import astro from '@santi020k/eslint-config-astro'
import { eslintConfig } from '@santi020k/eslint-config-basic'
export default eslintConfig({
typescript: true,
frameworks: {
astro
}
})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.
Notes
- 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
- Source Package: packages/astro
- Playground: packages/playground/astro