mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
When we developed linter for #1141 , we needed to configure some settings for `jsx-a11y`, which was not supported before, but I am trying to support it now. like this: ``` fn config() -> serde_json::Value { serde_json::json!([2,{ "ignoreNonDOM": true }]) } fn settings() -> serde_json::Value { serde_json::json!({ "jsx-a11y": { "components": { "Button": "button", } } }) } let pass = vec![ ("<Button />", Some(config()), Some(settings())), ]; ``` |
||
|---|---|---|
| .. | ||
| .cargo | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| README.md | ||
About
Wasm package for oxc compiler.
🚴 Usage
import oxc from 'oxc-wasm'
const ast = oxc.main(code, options)
🛠️ Build with wasm-pack build
cargo binstall wasm-pack
wasm-pack build
🔬 Test in Headless Browsers with wasm-pack test
wasm-pack test --headless --firefox
🎁 Publish to NPM with wasm-pack publish
wasm-pack publish
🔋 Batteries Included
wasm-bindgenfor communicating between WebAssembly and JavaScript.console_error_panic_hookfor logging panic messages to the developer console.