Skip to content
You are viewing the v1 archive. For current setup guidance, use the v3 docs; the v2 release is preserved at /v2/.

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.

pnpm
pnpm add -D @santi020k/eslint-config-astro
npm
npm install -D @santi020k/eslint-config-astro
yarn
yarn add -D @santi020k/eslint-config-astro
bun
bun add -d @santi020k/eslint-config-astro
import astro from '@santi020k/eslint-config-astro'
import { eslintConfig } from '@santi020k/eslint-config-basic'
export default eslintConfig({
frameworks: {
astro
},
typescript: true
})
  • Astro-specific rules through a dedicated framework package.
  • Support for embedded script handling in .astro files.
  • Compatibility with the TypeScript package’s virtual-file protections.
  • Astro projects usually enable typescript: true, even when most code is inside .astro files.
  • The TypeScript package disables type-checked rules in generated virtual files where full project-service semantics are not reliable.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.