← 返回
未分类 中文

Biome Config Validator

Validate and lint Biome (biome.json) configuration files for structure, rule conflicts, deprecated options, and best practices. 22 rules across structure, li...
对Biome (biome.json) 配置文件进行验证和 lint,检查结构、规则冲突、已弃用选项及最佳实践。共 22 条规则,覆盖结构、lint 等方面。
charlie-morrison charlie-morrison 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 391
下载
💾 1
安装
1
版本
#latest

概述

Biome Config Validator

Validate biome.json configuration files for correctness, conflicts, deprecated options, and best practices.

Commands

# Validate a biome.json file (all rules)
python3 scripts/biome_config_validator.py lint biome.json

# Check for rule conflicts only
python3 scripts/biome_config_validator.py conflicts biome.json

# Check for deprecated options
python3 scripts/biome_config_validator.py deprecated biome.json

# Validate structure only
python3 scripts/biome_config_validator.py validate biome.json

# JSON output
python3 scripts/biome_config_validator.py lint biome.json --format json

# Summary only
python3 scripts/biome_config_validator.py lint biome.json --format summary

Rules (22)

Structure (5)

  • Invalid JSON syntax
  • Unknown top-level keys
  • Invalid schema version ($schema URL)
  • Missing recommended sections (linter, formatter)
  • Invalid file patterns in includes/excludes

Linting (7)

  • Unknown lint rule names
  • Rules in wrong category
  • Conflicting rules (e.g., useConst vs noConst)
  • Disabled recommended rules without justification
  • Invalid rule severity values
  • Empty rule groups
  • Deprecated rule names

Formatting (5)

  • Invalid indent style/width combination
  • Conflicting formatter settings
  • Line width out of reasonable range
  • Invalid quote style values
  • Tab width mismatch with indent width

Best Practices (5)

  • Missing VCS integration settings
  • Overly broad ignore patterns
  • No organizeImports configuration
  • Missing JavaScript/TypeScript specific settings
  • Extends pointing to non-existent config

Output Formats

  • text (default): Human-readable with colors and severity icons
  • json: Machine-readable with file, rule, severity, message
  • summary: Counts by severity only

Exit Codes

  • 0: No issues (or warnings only)
  • 1: Errors found
  • 2: Invalid input

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 06:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 328,738
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,855
it-ops-security

Vulnerability Prioritizer

charlie-morrison
在CVSS评分之外,利用EPSS、CISA KEV、资产关键性、可达性分析以及利用成熟度进行漏洞优先级排序
★ 1 📥 512