首页/ AI 技能 / @skilllib/skill-2014279364165185538
Skill站外收录 @skilllib/skill-2014279364165185538

code-standards

强制执行 TypeScript、React 和 JavaScript 的最佳实践,确保代码具备可访问性、高性能、类型安全与长期可维护性,覆盖代码格式化、静态检查、开发规范及生产环境日志管控等全链路质量保障。

0.0 (0) 241 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# 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 | |--------|------| | Avoid any | `ts-no-any.md` | | Handle unknowns | `ts-use-unknown.md` | | Write components | `react-functional-only.md` | | Async code | `async-await-promises.md` | | Avoid legacy libs | `no-legacy.md` | ## 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.

评论 0

还没有评论,来抢沙发。