Announcing tsv - a formatter, parser, and future linter + more for Svelte + TypeScript/JS/HTML/CSS in Rust. - tailored to Svelte, no irrelevant bloat - emphasis on performance, no JS bridging - non-configurable, so hidden dir-specific state never changes behavior github.com/fuzdev/tsv tsv.fuz.dev
Post
github.comGitHub - fuzdev/tsv: formatter, parser, and future linter + more for TypeScript, Svelte, and CSS, written in Rustformatter, parser, and future linter + more for TypeScript, Svelte, and CSS, written in Rust - fuzdev/tsv
rsvelte uses oxc, tsv has its own parser today tsv is ~6% slower formatting TS and oxfmt bundles+delegates to Prettier, so tsv's wasm is 9x faster formatting Svelte & 13x for CSS, natively 12x/17x oxlint bridges to JS for ESLint plugins, and oxfmt is planning Prettier plugins - tsv won't for perf
0 reposts2 likes
The rsvelte formatter is currently 101× faster than Prettier. We’ve also run corpus tests against more than 12,000 real-world Svelte files, with differences in only 15 files. In other words, the rsvelte formatter achieves a high level of compatibility with Prettier. github.com/baseballyama...
github.comGitHub - baseballyama/rsvelte: Rust-powered Svelte ecosystemRust-powered Svelte ecosystem. Contribute to baseballyama/rsvelte development by creating an account on GitHub.