Skip to content

Commit

Permalink
feat: add biome-config
Browse files Browse the repository at this point in the history
  • Loading branch information
nnecec committed Apr 23, 2024
1 parent 2eaef8c commit 67c0b80
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 48 deletions.
48 changes: 48 additions & 0 deletions packages/biome/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"ignore": [],
"attributePosition": "auto",
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"bracketSpacing": true,
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"semicolons": "asNeeded",
"trailingComma": "all",
"bracketSameLine": true
}
},
"json": {
"formatter": {
"trailingCommas": "none"
}
},
"overrides": [
{
"include": ["**/*.ts", "**/*.tsx"],
"javascript": {
"formatter": {
"lineWidth": 120
}
}
}
]
}
16 changes: 16 additions & 0 deletions packages/biome/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@nnecec/biome-config",
"version": "0.0.0",
"author": "nnecec(https://github.com/nnecec/)",
"main": "index.js",
"files": [
"biome.json",
"README.md"
],
"dependencies": {
"@biomejs/biome": "^1.7.1"
},
"publishConfig": {
"access": "public"
}
}
17 changes: 17 additions & 0 deletions packages/biome/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# `@nnecec/biome-config`

## Usage

Install:

```bash
$ npm install --save-dev @nnecec/biome-config
```

create `biome.json`

```json
{
"extends": "@nnecec/biome-config"
}
```
148 changes: 100 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 67c0b80

Please sign in to comment.