Skip to content

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

sh
pnpm add -D @santi020k/eslint-config-astro
sh
npm install -D @santi020k/eslint-config-astro
sh
yarn add -D @santi020k/eslint-config-astro
sh
bun add -d @santi020k/eslint-config-astro

Configure

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 .astro files.
  • Compatibility with the TypeScript package’s virtual-file protections.

Notes

  • 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.

Documentation site v1.3.0 for @santi020k/eslint-config-basic