rsvelte

rsvelte

Lint, format and type check Svelte 5 with native tools written in Rust.

This release is experimental. Its results can differ from those of the official tools.

npm install --save-dev @rsvelte/cli
npx @rsvelte/cli lint
npx @rsvelte/cli format
npx @rsvelte/cli typecheck

typecheck runs a TypeScript 7 type checker that you install, such as tsrs, a port of TypeScript to Rust.

lint

Reports problems with rules ported from eslint-plugin-svelte, ESLint and typescript-eslint.

format

Formats files with oxfmt, the formatter of the oxc project, extended with a Svelte formatter.

typecheck

Reports the type errors that svelte-check reports.

rsvelte checks Svelte 5 components in runes mode, plus TypeScript and JavaScript files. It does not support Svelte 4.

Read the guide to start, or try rsvelte in the playground without installing it.