← ClaudeAtlas

lint-and-formatlisted

Lint and format TypeScript/React code using Ultracite (Biome). Use when writing, reviewing, or fixing code to enforce project coding standards including type safety, accessibility, performance, and modern JS/TS patterns. Run `bun x ultracite fix` to auto-fix issues or `bun x ultracite check` to validate.
Mark-Life/agent-task-manager · ★ 0 · Code & Development · score 62
Install: claude install-skill Mark-Life/agent-task-manager
# Ultracite Code Standards This project uses **Ultracite**, a zero-config preset that enforces strict code quality standards through automated formatting and linting. ## Quick Reference - **Format code**: `bun x ultracite fix` - **Check for issues**: `bun x ultracite check` - **Diagnose setup**: `bun x ultracite doctor` Biome (the underlying engine) provides robust linting and formatting. Most issues are automatically fixable. --- ## Core Principles Write code that is **accessible, performant, type-safe, and maintainable**. Focus on clarity and explicit intent over brevity. ### Type Safety & Explicitness - Use explicit types for function parameters and return values when they enhance clarity - Prefer `unknown` over `any` when the type is genuinely unknown - Use const assertions (`as const`) for immutable values and literal types - Leverage TypeScript's type narrowing instead of type assertions - Use meaningful variable names instead of magic numbers - extract constants with descriptive names ### Modern JavaScript/TypeScript - Use arrow functions for callbacks and short functions - Prefer `for...of` loops over `.forEach()` and indexed `for` loops - Use optional chaining (`?.`) and nullish coalescing (`??`) for safer property access - Prefer template literals over string concatenation - Use destructuring for object and array assignments - Use `const` by default, `let` only when reassignment is needed, never `var` ### Async & Promises - Always `await` promises in as