Astro
Use Astro support from the main v2 package. Application projects no longer install a separate @santi020k/eslint-config-astro package.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-basicnpm install -D @santi020k/eslint-config-basicyarn add -D @santi020k/eslint-config-basicbun add -d @santi020k/eslint-config-basicUsing Lite
Section titled “Using Lite”The default install above remains recommended. If you use the manual-dependency lite package, install this framework config package too:
pnpm add -D @santi020k/eslint-config-lite @santi020k/eslint-config-astro eslintnpm install -D @santi020k/eslint-config-lite @santi020k/eslint-config-astro eslintyarn add -D @santi020k/eslint-config-lite @santi020k/eslint-config-astro eslintbun add -d @santi020k/eslint-config-lite @santi020k/eslint-config-astro eslintConfigure
Section titled “Configure”import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({ frameworks: { astro: true }, typescript: true})Most projects can also rely on auto-detection and use eslintConfig() with no framework object.
What It Adds
Section titled “What It Adds”- Astro files and embedded script/template linting.
- Composition through the same
@santi020k/eslint-config-basicentry point as every other framework. - Compatibility with advanced overrides if you pass a custom config array or factory instead of
true.
Astro Doctor
Section titled “Astro Doctor”Enable the optional Astro Doctor ESLint rules for additional performance, accessibility, security, and best-practice diagnostics:
import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({ features: { 'astro-doctor': true }, frameworks: { astro: true }})This integration adds Astro Doctor’s proprietary ESLint rules without applying the official Astro preset a second time. Health scoring, project audits, baselines, and changed-file scanning remain available through the separate @santi020k/astro-doctor CLI.
- The internal package still exists in the monorepo for modular development and generated API docs.
- For the old multi-package installation model, see the v1 Astro guide.
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.