npm / eslint-plugin-astro
eslint-plugin-astro
What changed in eslint-plugin-astro 1 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
4 breaking1 security2 deprecations2 new APIs and options2 behavior and defaults4 tooling4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeslint-plugin-astro 37 changes
Deprecations 2
The rule is deprecated, is now a no-op, and is removed from the recommended configuration because Astro's Rust compiler rejects omitted end tags during parsing.
The rule is deprecated and removed from the recommended configuration;
astro checkis now recommended for project-wide diagnostics.
New APIs and options 1
Adds support for eslint-plugin-jsx-a11y-x.
Behavior and default changes 1
The <style lang="postcss"> transform supports postcss-load-config v4 and later and ESM-only PostCSS plugins; v3 keeps working.
Tooling 1
Astro files are now parsed with Astro's Rust compiler instead of
@astrojs/compiler.
Fixes and other changes 2
The TypeScript parser is resolved from typescript-eslint when @typescript-eslint/parser is not installed directly.
Fixes a TypeError during preprocessing when eslint-plugin-astro encounters a self-closing <script /> tag.
eslint-plugin-astro 27 changes
Breaking changes 3
ESLint v8 and v9 are no longer supported; ESLint v10.0.0 or later is required.
CommonJS entry points are removed; package usage must be ESM-only.
Node.js ^22.22.3, ^24.16.0, or >=26.3.0 is now required.
New APIs and options 1
Adds the astro/no-omitted-end-tags rule for checking omitted end tags.
Behavior and default changes 1
The rule is now included in the recommended config.
Tooling 1
Configs were updated and reorganized.
Fixes and other changes 1
Fixes false positives for component names that overlap with HTML tag names, such as <Head>, while preserving reported source offsets.
eslint-plugin-astro 15 changes
Breaking changes 1
The plugin now uses astro-eslint-parser v1.
Security 1
Adds a rule that disallows unsafe inline scripts.
Tooling 2
Adds a rule that disallows prerender exports outside the pages/ directory.
Compatibility with eslint v10 is improved.
Fixes and other changes 1
Fixes an error when eslint-plugin-astro is used with @eslint/json.