Proposal: Native .astro File Support in Oxlint (Parser + Rule Integration) #19249
SalahAdDin
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Oxlint team 👋
I’d like to propose adding first-class support for Astro (
.astro) files, starting with frontmatter parsing and progressively expanding into template awareness.Given Oxlint’s performance-first architecture, this could position it as the default linter for modern performance-oriented frameworks.
Why Astro Support Is Strategically Aligned
Astro’s core value proposition is performance (SSG, partial hydration, server-first rendering).
Oxlint shares that philosophy — fast, Rust-based linting with minimal overhead.
Currently, Astro projects depend on ESLint with custom parsers, which introduces:
There is no high-performance alternative for
.astrolinting today.Supporting Astro would create strong alignment between two performance-driven ecosystems.
What Astro Files Require (Technically)
An
.astrofile contains:1. Frontmatter block
2. Template section
client:*,set:html, etc.)This makes
.astroa hybrid format requiring either:Proposed Phased Implementation
Phase 1 – Frontmatter Support (High ROI, Lower Complexity)
.astroThis delivers immediate value with limited architectural expansion.
Most logic bugs in Astro apps live in frontmatter.
Phase 2 – Template Parsing Integration
Possible approaches:
@astrojs/compilerfor AST generationThis enables:
Phase 3 – Astro-Specific Static Analysis (Long-Term Opportunity)
Oxlint could provide rules unique to Astro, such as:
client:*directive usageThis would differentiate Oxlint from generic JS linters.
Architectural Questions
To evaluate feasibility:
Why This Is a Strategic Opportunity
.astro.If this aligns with the project roadmap, I’d be interested in exploring a proof-of-concept for Phase 1 (frontmatter parsing) to validate the integration model.
Looking forward to your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions