Skip to content

ampcode/zvelte-check

Repository files navigation

zvelte-check

A fast diagnostic tool for Svelte projects.

Goals

  • Drop-in replacement for svelte-check
  • Significantly faster startup and execution
  • Support for Svelte 5+ (runes, snippets, etc.)

Prerequisites

TypeScript checking requires tsgo:

npm install -D @typescript/native-preview
# or
bun add -D @typescript/native-preview

Installation

brew install ampcode/tap/zvelte-check

Usage

# Check current directory
zvelte-check

# Check specific workspace
zvelte-check --workspace ./my-project

# Output as JSON
zvelte-check --output json

Options

--workspace <path>       Working directory (default: current directory)
--output <format>        Output format: human, human-verbose, machine, json
--tsconfig <path>        Path to tsconfig.json
--no-tsconfig            Don't use tsconfig.json
--ignore <pattern>       Glob pattern to ignore
--fail-on-warnings       Exit with error on warnings
--threshold <level>      Minimum severity: warning, error

Gitignore

Add .zvelte-check/ to your project's .gitignore:

echo '.zvelte-check/' >> .gitignore

This directory contains temporary TypeScript stubs generated during type-checking.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •