Skip to content

Commit eb29fc9

Browse files
add biome (#46)
1 parent 87d76e1 commit eb29fc9

157 files changed

Lines changed: 6024 additions & 2583 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"$schema": "https://cdn.hopjs.net/npm/@changesets/config@3.1.3/schema.json",
3-
"changelog": [
4-
"@changesets/changelog-github",
5-
{ "repo": "bunnyWay/cli" }
6-
],
3+
"changelog": ["@changesets/changelog-github", { "repo": "bunnyWay/cli" }],
74
"commit": false,
85
"fixed": [
96
[

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- uses: oven-sh/setup-bun@v2
1313
- run: bun install
1414
- run: bun run api:generate
15+
- run: bun run lint:ci
1516
- run: bun run typecheck
1617
- run: bun test
1718
- name: Build database studio

biome.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.12/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true,
19+
"suspicious": {
20+
"noExplicitAny": "off"
21+
},
22+
"a11y": {
23+
"noSvgWithoutTitle": "off"
24+
},
25+
"performance": {
26+
"noAccumulatingSpread": "off"
27+
},
28+
"complexity": {
29+
"noBannedTypes": "off"
30+
}
31+
}
32+
},
33+
"overrides": [
34+
{
35+
"includes": ["**/*.test.ts"],
36+
"linter": {
37+
"rules": {
38+
"style": {
39+
"noNonNullAssertion": "off"
40+
}
41+
}
42+
}
43+
},
44+
{
45+
"includes": ["**/components/ui/**"],
46+
"linter": {
47+
"rules": {
48+
"a11y": "off"
49+
}
50+
}
51+
}
52+
],
53+
"javascript": {
54+
"formatter": {
55+
"quoteStyle": "double"
56+
}
57+
},
58+
"css": {
59+
"parser": {
60+
"tailwindDirectives": true
61+
}
62+
},
63+
"assist": {
64+
"enabled": true,
65+
"actions": {
66+
"source": {
67+
"organizeImports": "on"
68+
}
69+
}
70+
}
71+
}

bun.lock

Lines changed: 29 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@
1010
"build:studio": "bun run --filter @bunny.net/database-studio build:client",
1111
"build": "bun run build:studio && bun build packages/cli/src/index.ts --compile --outfile bunny",
1212
"typecheck": "bun run tsc --noEmit",
13+
"lint": "biome check --write .",
14+
"lint:ci": "biome ci",
1315
"api:generate": "bun run --filter @bunny.net/api generate",
1416
"api:update": "bun run --filter @bunny.net/api update-specs",
1517
"changeset": "changeset",
1618
"version": "changeset version",
1719
"release": "changeset publish"
1820
},
1921
"devDependencies": {
22+
"@biomejs/biome": "^2.4.12",
2023
"@changesets/changelog-github": "^0.6.0",
2124
"@changesets/cli": "^2.30.0",
2225
"@types/bun": "latest"

0 commit comments

Comments
 (0)