Vitest Config Validator

v1.0.0

Validate vitest.config.ts/js and vitest workspace configurations for syntax, deprecated options, plugin conflicts, and best practices. Use when validating Vi...

0· 92·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for charlie-morrison/vitest-config-validator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Vitest Config Validator" (charlie-morrison/vitest-config-validator) from ClawHub.
Skill page: https://clawhub.ai/charlie-morrison/vitest-config-validator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install charlie-morrison/vitest-config-validator

ClawHub CLI

Package manager switcher

npx clawhub@latest install vitest-config-validator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description (Vitest config validator) match the provided assets: an instruction-only SKILL.md and a Python script that parses vitest.config.ts/js files. Required env vars, binaries, and config paths are not requested, which is coherent for a local validator.
Instruction Scope
SKILL.md instructs running the included Python script against local config files. The script reads the target config file(s) and applies regex-based checks; the repo explicitly states it parses text and does not execute JS. The instructions do not request unrelated system files or external endpoints.
Install Mechanism
There is no install spec — instruction-only plus an included Python script. This is low-risk and proportionate to the stated purpose. No download-from-URL or package installs are required.
Credentials
The skill requests no environment variables or credentials. The script operates on file paths supplied by the user, which is appropriate for a config linter.
Persistence & Privilege
The skill does not declare always:true and has no install-time hooks. It does not request persistent system-wide changes or elevated privileges in the provided metadata or instructions.
Assessment
This skill appears to be a local, regex-based Vitest configuration linter and is internally consistent with that purpose. Before installing/using it: (1) inspect the full Python file for any network/callout patterns (search for subprocess, os.system, socket, requests, urllib, http, fetch) to confirm there are no hidden external calls; (2) run it on sample or non-sensitive config files first and in a sandboxed environment if possible; (3) avoid passing paths to sensitive files or directories you don't intend to expose; (4) expect false positives/negatives because the tool uses heuristic/regex parsing rather than executing the config. If you want higher assurance, provide the full (untruncated) script for a line-by-line review — that could raise confidence to high.

Like a lobster shell, security has layers — review code before you run it.

latestvk97a1ctphkrekhnqretspffmp18582vf
92downloads
0stars
1versions
Updated 6d ago
v1.0.0
MIT-0

Vitest Config Validator

Validate vitest.config.ts and vitest.config.js files for syntax errors, deprecated options, plugin conflicts, and best practices. Parses config files as text using regex patterns — no JS execution required.

Commands

# Full validation (all rules)
python3 scripts/vitest_config_validator.py validate vitest.config.ts

# Quick syntax-only check (structure rules only)
python3 scripts/vitest_config_validator.py check vitest.config.ts

# Explain config in human-readable form
python3 scripts/vitest_config_validator.py explain vitest.config.ts

# Suggest improvements
python3 scripts/vitest_config_validator.py suggest vitest.config.ts

# JSON output
python3 scripts/vitest_config_validator.py validate vitest.config.ts --format json

# One-line PASS/WARN/FAIL summary
python3 scripts/vitest_config_validator.py validate vitest.config.ts --format summary

# Strict mode (warnings become errors)
python3 scripts/vitest_config_validator.py validate vitest.config.ts --strict

Rules (22)

#CategorySeverityRule
S1StructureEFile not found or unreadable
S2StructureEEmpty config or no defineConfig call
S3StructureWNo default export found
S4StructureWBoth vitest.config and vite.config with test section detected
S5StructureWUnknown top-level config keys
T1Test SettingsEInvalid test environment (must be jsdom/happy-dom/node/edge-runtime)
T2Test SettingsWEmpty include or exclude patterns
T3Test SettingsEInvalid glob pattern in include/exclude
T4Test SettingsICoverage provider not set (recommend c8/v8/istanbul)
T5Test SettingsWtestTimeout set unreasonably high (>60000ms) or low (<100ms)
P1PerformanceWsingleThread: true used with forks pool (disables parallelism)
P2PerformanceWisolate: false without comment (risky for test isolation)
P3PerformanceINo pool configuration (defaults may not be optimal)
P4PerformanceWglobals: true without type declaration reference
C1CompatibilityWDeprecated option used
C2CompatibilityWcss.modules without css.include (potential miss)
C3CompatibilityWdeps.inline and deps.external conflict
B1Best PracticesINo reporter configured
B2Best PracticesIMissing coverage configuration
B3Best PracticesWsetupFiles references potentially non-existent pattern
B4Best PracticesIsnapshotFormat not explicitly configured
B5Best PracticesIpassWithNoTests not set (CI may fail on empty test suite)

Output Formats

  • text (default): Human-readable with [E]/[W]/[I] severity prefix
  • json: Machine-readable structured output
  • summary: Single-line PASS / WARN / FAIL

Exit Codes

  • 0 — No errors
  • 1 — Errors found (or warnings in --strict mode)
  • 2 — File not found or parse error

Comments

Loading comments...