vue_oxc_toolkit
A high-performance toolkit to generate semantically correct AST from Vue SFCs for code linting purposes.
Features
- Full SFC Parsing: Support for both composition and options API. Support parsing
<template>block and TypeScript code as well. - JSX/TSX Transformation: Transforms Vue templates into OXC-compatible JSX/TSX AST, enabling deep semantic analysis.
- Linter Ready: Automatically generates metadatas which are required by
oxc_linter(such asmodule_recordandirregular_whitespaces). - High Performance: Complete the AST transformation in a single traversal.
- Error Handling: Collect the errors from both
vue-compiler-rsandoxc-parser. Implement similarpainckedlogic likeoxc-parser
Credits
This project includes a fork of vue-oxc-parser originally created by zhiyuanzmj.
This project depends on vue-compiler-rs which provides underlying support for Vue parsing.