biome

Enforce code quality and formatting standards using Biome.

1|Updated Nov 3, 2024
One-click install
npx skills add https://github.com/kingstinct/.github --skill biome-kingstinct
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: biome
Source: https://github.com/kingstinct/.github/tree/main/biome/skills/biome
Command: npx skills add https://github.com/kingstinct/.github --skill biome-kingstinct

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces consistent code style and catches potential errors by integrating Biome, a fast linter and formatter, directly into your workflow.

Core Features & Use Cases

  • Automated Formatting: Automatically formats code according to project standards on file edits.
  • Linting: Identifies and helps fix code quality issues and potential bugs.
  • Use Case: When you save a TypeScript file, Biome automatically formats it and flags any unused imports, ensuring your codebase remains clean and maintainable.

Quick Start

Run bunx biome check --fix on the file src/index.ts.

Frequently Asked Questions about biome

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

FAQPage Schema
How do I automate code formatting and linting for TypeScript files?

Automate TypeScript code formatting and linting by running `bunx biome check --fix` on target files. Biome automatically enforces project standards, formats code on edits, and flags unused imports to keep your codebase maintainable.

Do I need a biome.json configuration file to enforce code quality standards?

Yes, you need a `biome.json` configuration file to define project standards. This file is required for Biome to perform linting and formatting checks and enforce consistent code style across your project.

How does Biome catch potential errors and unused imports in JavaScript?

Biome catches potential JavaScript errors and unused imports through its integrated linter, which analyzes code against configured rules. It identifies quality issues and helps fix them automatically during code editing tasks.

What is the best way to format code and fix linting errors in a JavaScript project?

The best way to format code and fix linting errors in a JavaScript project is using a fast linter and formatter like Biome. Running `bunx biome check --fix` applies formatting standards and resolves identified code quality issues directly.

Does Biome work as both a linter and formatter for project code editing tasks?

Yes, Biome works as both a linter and formatter for project code editing tasks. It integrates directly into your workflow to automatically format code according to project standards and identify potential bugs during editing.