DEV Community

Ramu Narasinga
Ramu Narasinga

Posted on • Originally published at thinkthroo.com

Biome.json in git-mcp codebase.

In this article, we will review Biome.json in git-mcp codebase. We will look at:

  1. What is biome?

  2. linter rules in git-mcp

  3. formatter rules in git-mcp

  4. biome.jsonc in t3-env

What is Biomejs?

Biome.js is toolchain for your web project you can format, lint and more in a fraction of seconds.

Format code like prettier, save time.

Biome is a fast formatter for JavaScript, TypeScript, JSX, TSX, JSON, HTML, CSS and GraphQL that scores 97% compatibility with *Prettier*, saving CI and developer time.

Biome can even format malformed code as you write it in your favorite editor.

Fix problems, learn best practice. 

Biome is a performant linter for JavaScript, TypeScript, JSX, CSS and GraphQL that features 333 rules from ESLint, TypeScript ESLint, and other sources.

Biome outputs detailed and contextualized diagnostics that help you to improve your code and become a better programmer!

biome.json Configuration

Checkout biome.json configuration to learn more about biome.json 

In this article, we are focusing on the formatter and linter checkout formatter and linter options.

biome.json in git-mcp

In git-mcp/biome.json, you will find the following code:

{
  "$schema": "https://biomejs.dev/schemas/1.6.2/schema.json",
  "organizeImports": {
    "enabled": true
  },
  "files": {
    "ignore": ["worker-configuration.d.ts"]
  },
  "vcs": {
    "enabled": true,
    "clientKind": "git",
    "useIgnoreFile": true
  },
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true,
      "suspicious": {
        "noExplicitAny": "off",
        "noDebugger": "off",
        "noConsoleLog": "off",
        "noConfusingVoidType": "off"
      },
      "style": {
        "noNonNullAssertion": "off"
      }
    }
  },
  "formatter": {
    "enabled": true,
    "indentWidth": 4,
    "lineWidth": 100
  }
}
Enter fullscreen mode Exit fullscreen mode

linter rules in git-mcp

Following are the linter rules defined in git-mcp/biome.json

 "linter": {
    "enabled": true,
    "rules": {
      "recommended": true,
      "suspicious": {
        "noExplicitAny": "off",
        "noDebugger": "off",
        "noConsoleLog": "off",
        "noConfusingVoidType": "off"
      },
      "style": {
        "noNonNullAssertion": "off"
      }
    }
  },
Enter fullscreen mode Exit fullscreen mode

Learn more about linter options.

formatter rules in git-mcp

Following are the formatter rules defined in git-mcp/biome.json

 "formatter": {
    "enabled": true,
    "indentWidth": 4,
    "lineWidth": 100
  }
Enter fullscreen mode Exit fullscreen mode

Learn more about formatter options.

T3-env also had biome.jsonc

About me:

Hey, my name is Ramu Narasinga. I study codebase architecture in large open-source projects.

Email: ramu.narasinga@gmail.com

Want to learn from open-source? Solve challenges inspired by open-source projects.

References:

  1. https://github.com/idosal/git-mcp/blob/main/biome.json

  2. https://github.com/t3-oss/t3-env/blob/main/biome.jsonc

  3. https://medium.com/@ramunarasinga/biome-js-a-toolchain-to-format-and-lint-your-web-project-e963f7feaf7c

  4. https://biomejs.dev/reference/configuration/

  5. https://biomejs.dev/

Google AI Education track image

Build Apps with Google AI Studio 🧱

This track will guide you through Google AI Studio's new "Build apps with Gemini" feature, where you can turn a simple text prompt into a fully functional, deployed web application in minutes.

Read more →

Top comments (0)

Feature flag article image

Create a feature flag in your IDE in 5 minutes with LaunchDarkly’s MCP server ⏰

How to create, evaluate, and modify flags from within your IDE or AI client using natural language with LaunchDarkly's new MCP server. Follow along with this tutorial for step by step instructions.

Read full post

👋 Kindness is contagious

Take a moment to explore this thoughtful article, beloved by the supportive DEV Community. Coders of every background are invited to share and elevate our collective know-how.

A heartfelt "thank you" can brighten someone's day—leave your appreciation below!

On DEV, sharing knowledge smooths our journey and tightens our community bonds. Enjoyed this? A quick thank you to the author is hugely appreciated.

Okay