Linting & Formatting

Forjnot uses Biome.js for both linting and formatting. It’s a modern, fast, and zero-dependency tool β€” no need for separate ESLint or Prettier setups.

✨ Why Biome?

  • One tool for linting and formatting
  • Written in Rust β€” incredibly fast
  • Supports JavaScript, TypeScript, JSX, and more
  • Includes sensible defaults for modern projects

πŸ“¦ Pre-configured Setup

Forjnot includes a default biome.json configuration at the root of the repo. This means linting and formatting work out-of-the-box with no additional setup. You can customize rules, formatting style, or enable/disable specific lints as needed.

// biome.json
{
  "formatter": {
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100,
    "quoteStyle": "double"
  },
  "linter": {
    "rules": {
      "recommended": true,
      "nursery": true
    }
  }
}

πŸš€ Run Lint & Format

To check for lint issues or auto-format your codebase, use the following commands:

pnpm lint

To format all project files:

pnpm format

For full customization options and rule references, check out the Biome documentation.

Enjoy fast, consistent, and fully-configurable code quality out-of-the-box πŸš€