Skip to content

Commit 27140d3

Browse files
committed
chore: enforce generated unused imports cleanup
1 parent 8bf6fe6 commit 27140d3

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ format-check:
1616

1717
format-generated:
1818
pnpm install
19-
# Format and organize imports for generated TS without linting
20-
pnpm biome check --write --linter-enabled=false packages_generated/
19+
# Cleanup unused imports/variables in generated TS with dedicated config
20+
pnpm biome lint --write --unsafe --config-path scripts/templates/biome.generated.json packages_generated/
2121

2222
typing:
2323
pnpm run typecheck
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"root": false,
3+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
4+
"files": {
5+
"ignoreUnknown": true
6+
},
7+
"linter": {
8+
"enabled": true,
9+
"rules": {
10+
"recommended": false,
11+
"correctness": {
12+
"noUnusedVariables": "error",
13+
"noUnusedImports": "error"
14+
},
15+
"style": {
16+
"useNamingConvention": "off",
17+
"noDefaultExport": "off"
18+
},
19+
"suspicious": {
20+
"noShadowRestrictedNames": "off"
21+
},
22+
"performance": {
23+
"noAccumulatingSpread": "off"
24+
},
25+
"complexity": {
26+
"noExcessiveCognitiveComplexity": "off",
27+
"noStaticOnlyClass": "off",
28+
"noBannedTypes": "off"
29+
}
30+
}
31+
},
32+
"formatter": {
33+
"enabled": true
34+
},
35+
"javascript": {
36+
"formatter": {
37+
"quoteStyle": "single",
38+
"trailingCommas": "all",
39+
"semicolons": "asNeeded"
40+
}
41+
}
42+
}
43+
44+

0 commit comments

Comments
 (0)