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/

The Community for IaC Practitioners

The Community for IaC Practitioners

Join IaCConf on August 27 for a virtual event that dives into the security and governance challenges of managing infrastructure as code at scale.

Join us August 27

Top comments (0)

Developer-first embedded dashboards

Developer-first embedded dashboards

Embed in minutes, load in milliseconds, extend infinitely. Import any chart, connect to any database, embed anywhere. Scale elegantly, monitor effortlessly, CI/CD & version control.

Get early access

👋 Kindness is contagious

Explore this insightful write-up embraced by the inclusive DEV Community. Tech enthusiasts of all skill levels can contribute insights and expand our shared knowledge.

Spreading a simple "thank you" uplifts creators—let them know your thoughts in the discussion below!

At DEV, collaborative learning fuels growth and forges stronger connections. If this piece resonated with you, a brief note of thanks goes a long way.

Okay