Socket
Book a DemoInstallSign in
Socket

@maxchang/biome-config

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxchang/biome-config

Max Chang's Biome config

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

@maxchang/biome-config

npm Checked with Biome code style (Is that really a thing?)

Convention

  • Based on recommended rules from Biome
  • Using spaces as indentation, default 4 spaces for JS/TS
  • Sorted imports, dangling commas
  • Single quotes, semicolons as needed

Features

  • Automatic import organization
  • Git integration, respects .gitignore by default
  • Customizable TypeScript, JavaScript, and JSON rules
  • Predefined ignore patterns for common files/directories
  • Partial support for .vue, .svelte, and .astro files

Usage

Not sure how to set up Biome? Take a look at the Getting Started guide from the official docs.

pnpm i -D @maxchang/biome-config
yarn add -D @maxchang/biome-config
npm i @maxchang/biome-config --save-dev

Extend the config in your biome.json file:

{
  "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
  "extends": ["@maxchang/biome-config"]
}

Add the following scripts to your package.json:

"scripts": {
  "lint": "biome check",
  "lint:fix": "biome check --write ."
}

If you use VS Code, here is a reference settings.json, with automatic formatting on save and Biome as the default formatter for languages needed.

Recipes

Sort package.json keys

Since Biome has no plans to implement something like prettier-plugin-packagejson and currently lacks equivalent rules such as jsonc/sort-keys*, you can use sort-package-json as a workaround.

pnpx sort-package-json
npx sort-package-json
* While Biome provides an assist action like useSortedKeys, it does not allow customization to sort keys in a specific order.

References

Keywords

biome

FAQs

Package last updated on 17 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.