Skip to content

Commit d5cd0bc

Browse files
committed
chore(dashboard): add Biome config for lint + format
Nested config ("root": false) so it coexists with packages/plugin/biome.json in this Bun workspace monorepo. Dashboard uses 2-space indent matching its existing code style (plugin uses 4-space). Rules match the plugin where sensible: - recommended rule set - useConst: error, noForEach: off, noAssignInExpressions: off, noConsole: off - noNonNullAssertion/noExplicitAny: warn - noUnusedImports/noUnusedVariables: warn Scope: packages/dashboard/src/**/*.{ts,tsx,js,jsx,css,json}, excluding .d.ts, dist/, src-tauri/target/. Run locally: ./node_modules/.bun/@biomejs+cli-darwin-arm64@2.4.7/node_modules/\ @biomejs/cli-darwin-arm64/biome check packages/dashboard/src
1 parent 49d4982 commit d5cd0bc

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

packages/dashboard/biome.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
3+
"root": false,
4+
"vcs": {
5+
"enabled": true,
6+
"clientKind": "git",
7+
"useIgnoreFile": true
8+
},
9+
"assist": {
10+
"enabled": true
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2,
16+
"lineWidth": 100
17+
},
18+
"linter": {
19+
"enabled": true,
20+
"rules": {
21+
"recommended": true,
22+
"complexity": {
23+
"noForEach": "off"
24+
},
25+
"style": {
26+
"noNonNullAssertion": "warn",
27+
"useConst": "error"
28+
},
29+
"suspicious": {
30+
"noExplicitAny": "warn",
31+
"noAssignInExpressions": "off",
32+
"noConsole": "off"
33+
},
34+
"correctness": {
35+
"noUnusedImports": "warn",
36+
"noUnusedVariables": "warn"
37+
}
38+
}
39+
},
40+
"javascript": {
41+
"formatter": {
42+
"quoteStyle": "double",
43+
"trailingCommas": "all",
44+
"semicolons": "always"
45+
}
46+
},
47+
"files": {
48+
"includes": [
49+
"src/**/*.{ts,tsx,js,jsx,css,json}",
50+
"!src/**/*.d.ts",
51+
"!dist/**",
52+
"!src-tauri/target/**"
53+
]
54+
}
55+
}

0 commit comments

Comments
 (0)