linting-formatting

Automate linting and formatting checks across TypeScript projects in an Nx workspace.

9|2|Updated Apr 13, 2024
One-click install
npx skills add https://github.com/JacobLey/leyman --skill linting-formatting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: linting-formatting
Source: https://github.com/JacobLey/leyman/tree/main/.claude/skills/linting-formatting
Command: npx skills add https://github.com/JacobLey/leyman --skill linting-formatting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Linting and formatting across a TypeScript monorepo, ensuring consistent code quality and style.

Core Features & Use Cases

  • Automated linting and formatting across all packages via Nx targets.
  • Auto-fix capabilities to apply fixes for lint and formatting issues, reducing CI failures.
  • Per-project and workspace-wide checks to support both targeted and full-repo workflows.

Quick Start

Run nx run <project>:check to verify linting and formatting for a single project.

Frequently Asked Questions about linting-formatting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate ESLint and Biome formatting across an Nx workspace?

Automating ESLint and Biome formatting across an Nx workspace uses targeted Nx tasks to check and auto-fix code quality issues for all packages. You can execute per-project or bulk checks to enforce consistent TypeScript styling.

How do I run linting and formatting checks for a single TypeScript project?

Running linting and formatting checks for a single TypeScript project uses the nx run <project>:check command. This verifies ESLint and Biome rules for that specific package without scanning the entire monorepo.

Do I need existing ESLint and Biome configurations to automate TypeScript linting?

Yes, automating TypeScript linting requires existing ESLint configuration and Biome formatting rules to function. The automation process reads your per-project config data to execute the appropriate check and fix targets.

Can I auto-fix lint and formatting issues across all packages in a TypeScript monorepo?

Yes, you can auto-fix lint and formatting issues across all packages in a TypeScript monorepo using bulk Nx targets. This applies automated corrections to reduce CI failures and maintain consistent workspace code quality.

What is the best way to enforce consistent code quality in a TypeScript monorepo?

Enforcing consistent code quality in a TypeScript monorepo is best achieved by automating ESLint and Biome formatting via Nx targets. This enables workspace-wide checks and auto-fixes to standardize styling across all packages.