Skip to main content

code-standards

TypeScript, React, and JavaScript best practices enforced by Ultracite/Biome.

来源信息

仓库
redpanda-data/console
最近来源活动
2026年9月16日 14:00
检测到的 SKILL.md 语言
英语
星标
4,336
分支
431

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-standards
description
TypeScript, React, and JavaScript best practices enforced by Ultracite/Biome.
# Code Standards Write code that is accessible, performant, type-safe, and maintainable. ## Activation Conditions - Linting errors need fixing - Code formatting issues - Code review feedback - Questions about style guidelines ## Quick Reference | Action | Rule | |--------|------| | Write components | `react-functional-only.md` | | Async code | `async-await-promises.md` | | Avoid legacy libs | `no-legacy.md` | `any` types and top-level regex are enforced by Biome (`noExplicitAny`, `useTopLevelRegex`). ## Commands ```bash bun x ultracite fix # Format and fix bun x ultracite check # Check for issues bun x ultracite doctor # Diagnose setup ``` ## Quick Fix Most issues are auto-fixed: ```bash bun x ultracite fix ``` ## Console Logging - **Never** use `console.log`, `console.debug`, or `console.info` in production code - Only use `console.error` and `console.warn` for actionable errors - For debug logging, wrap in `if (IsDev) { ... }` - Don't use `biome-ignore` to suppress console warnings - remove the logs instead ## Rules See `rules/` directory for detailed guidance.
在 GitHub 查看