English | Japanese
Shareable Biome configuration package for JavaScript/TypeScript projects by @mfyuu.
Choose from three configurations based on your project type: base, React, or Next.js.
The easiest way to set up Biome in your project is using our interactive CLI wizard:
npx @mfyuu/biome-configThis command will:
- Detect your project type (base, React, or Next.js)
- Install required dependencies (
@biomejs/biomeand@mfyuu/biome-config) - Create
biome.jsonorbiome.jsoncwith the appropriate configuration - Add Biome scripts to your
package.json(format,lint,lint-fix,check) - Set up VS Code integration with
.vscode/settings.json- Choose between Biome-only formatting or Biome with Prettier for Markdown files
- Optionally integrate Lefthook for Git hooks automation
- Installs
lefthookdependency - Creates lefthook configuration file
- Adds
preparescript for automatic Git hooks installation
- Installs
For all available options:
npx @mfyuu/biome-config --helpIf you prefer to set up manually:
- Install the required packages:
npm i -D @biomejs/biome @mfyuu/biome-config- Create
biome.jsonorbiome.jsoncin your project root:
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@mfyuu/biome-config/base"]
}{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@mfyuu/biome-config/react"]
}{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@mfyuu/biome-config/next"]
}Note
If you have problems with resolving the physical file, you can use the one published on this site:
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json"- Basic formatting settings (indentation, line breaks, etc.)
- Common TypeScript/JavaScript lint rules
- General best practices
- Inherits all settings from base
- React/JSX specific rules
- Hooks-related rules
- Accessibility rules
- Inherits all settings from react
- Next.js specific file pattern exclusions
- Support for both App Router and Pages Router
You can override inherited settings by adding custom configuration in your biome.json or biome.jsonc:
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@mfyuu/biome-config/base"],
"formatter": {
"indentStyle": "space"
}
}MIT License © 2025-PRESENT Kazuya Suzuki