Skip to contentView the source on GitHub

Small checks.
Better foundations.

Understand what each rule catches, why it matters, and what a better pattern looks like. Start with the defaults. Tune the checks to your project.

13
Astro Doctor rules
11
Project audits
54
Official Astro rules

Astro Doctor composes its rules with eslint-plugin-astro. The allpreset enables 63 unique ESLint checks after overlap deduplication, plus project audits. Each rule below includes its default severity; you can change that in your configuration.

Performance5 checks

Accessibility3 checks

Security2 checks

Best Practices3 checks

Project audits11 checks

The CLI also evaluates configuration and relationships across files that an isolated ESLint rule cannot see. Preset labels show where each audit is enabled.

Make the rules yours

Override individual severities in your eslint.config.js:

javascripteslint.config.js
import astroDoctorPlugin from '@santi020k/eslint-plugin-astro-doctor'

export default [
  astroDoctorPlugin.configs.recommended,
  {
    rules: {
      'astro-doctor/no-client-load-overuse': 'error',
      'astro-doctor/prefer-class-list': 'off',
    },
  },
]

For CLI settings and project audits, use adoctor.config.* file. Use --fix to apply automatic fixes offered by supported rules.