Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huijiewei/resolid-config

Resolid 通用配置, 包含了 TypeScript, Biome 的基础配置
https://github.com/huijiewei/resolid-config

biome lint typescript

Last synced: 18 days ago
JSON representation

Resolid 通用配置, 包含了 TypeScript, Biome 的基础配置

Awesome Lists containing this project

README

        

# @resolid/config

Resolid 通用配置, 包含了 `TypeScript`, `Biome` 的基础配置

## 使用方法

### 安装

```bash
pnpm add -D @resolid/config
```

### TypeScript 配置

增加下面内容到 `tsconfig.json`

#### 普通项目

```json
{
"extends": "@resolid/config/tsconfig.base"
}
```

#### React 项目

```json
{
"extends": "@resolid/config/tsconfig.react"
}
```

### Biome 配置

#### 普通配置

```json
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["@resolid/config/biome"]
}
```

#### React 项目

```json
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": [
"@resolid/config/biome",
"@resolid/config/biome.react"
]
}
```

#### TailwindCSS 项目

```json
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": [
"@resolid/config/biome",
"@resolid/config/biome.tailwind"
]
}
```