Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yearn-configs

Single package of shared Yearn tooling configs. Install once; pull Biome / TypeScript presets via package exports.

Install

bun add -d yearn-configs@github:yearn/yearn-configs#v0.2.0 @biomejs/biome@2.5.4

Or pin a commit:

bun add -d yearn-configs@git+https://github.com/yearn/yearn-configs.git#<sha> @biomejs/biome@2.5.4

Biome

Base

biome.json:

{
  "$schema": "https://biomejs.dev/schemas/2.5.4/schema.json",
  "extends": ["yearn-configs/biome.json"]
}

React / JSX

{
  "$schema": "https://biomejs.dev/schemas/2.5.4/schema.json",
  "extends": ["yearn-configs/react.json"]
}

Aliases: yearn-configs/biome, yearn-configs/biome/react, yearn-configs/react.

Pin @biomejs/biome to 2.5.4 (matches schema).

Scripts

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

TypeScript

tsconfig.json:

{
  "extends": "yearn-configs/tsconfig.json",
  "include": ["src"]
}

Alias: yearn-configs/tsconfig.

Override any compilerOptions after extends as needed.

Exports

Export File
yearn-configs/biome / yearn-configs/biome.json biome.json
yearn-configs/react / yearn-configs/biome/react / yearn-configs/react.json react.json
yearn-configs/tsconfig / yearn-configs/tsconfig.json tsconfig.json

Versioning

On push to main, CI creates GitHub Release v{version} from root package.json if missing.

Bump version → merge to main → tag lands.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors