Skip to content

oxlint: better vue support #15761

Description

@Boshen

Current Situation

eslint-plugin-vue cannot be made fully compatible because it relies on its own compiler, which produces a modified AST for ESLint to traverse.

In Oxc, due to the lack of JavaScript bindings inside Vue templates, rules such as unused variables (and many others) do not work and cannot be implemented.

Proposal

  • eslint-plugin-vue will not be a target for full compatibility at this time.
  • Implement a custom Vue parser in Oxc that extracts the JavaScript sections from templates.
  • Attach these extracted JavaScript fragments to the AST of the <script> tag and pass them through the rest of the linter pipeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions