Skip to content
yboyerPublic

About

Biome and TS configurations

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@yboyer/config

Shared Biome and TypeScript configurations for JS/TS projects.

Usage

1. Installation

Install Biome and the configuration as development dependencies:

npm i -D @biomejs/biome@^2.5.15 @yboyer/config

2. Configuration

Biome

Create a biome.json file at the project root with the following content to extend the shared configuration:

{
   "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
   "extends": ["@yboyer/config/biome.json"]
}

TypeScript

Extend tsconfig.json with the shared configuration file:

{
  "extends": "@yboyer/config/tsconfig.json",
  …
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist",
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": ["./src"]
}

3. Commands

To check code conformance:

npx biome check .

To apply automatic fixes (formatting and imports):

npx biome check --apply .

Items that cause errors

Rules

  • noUnnecessaryConditions

Domains

  • types

About

Biome and TS configurations

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors