Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 的基础配置
- Host: GitHub
- URL: https://github.com/huijiewei/resolid-config
- Owner: huijiewei
- License: mit
- Created: 2024-03-08T08:49:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T04:16:35.000Z (19 days ago)
- Last Synced: 2024-12-05T04:17:35.558Z (19 days ago)
- Topics: biome, lint, typescript
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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"
]
}
```