Skip to content

Commit 4a45495

Browse files
committed
fix: add biome config for generated files and update Makefile
1 parent 1c0c170 commit 4a45495

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

Makefile

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

1717
format-generated:
1818
pnpm install
19-
pnpm eslint --config eslint.config.generated.mjs --fix 'packages_generated/**/*.ts'
20-
pnpm biome format --write packages_generated/
19+
pnpm biome lint --write --unsafe --config-path scripts/templates/biome.generated.json packages_generated/
2120

2221
typing:
2322
pnpm run typecheck
@@ -26,7 +25,7 @@ lint:
2625
pnpm run lint
2726

2827
test:
29-
pnpm turbo test
28+
pnpm run test
3029

3130
test-coverage:
3231
pnpm run test:coverage
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
"noEmptyInterface": "off"
22+
},
23+
"performance": {
24+
"noAccumulatingSpread": "off"
25+
},
26+
"complexity": {
27+
"noExcessiveCognitiveComplexity": "off",
28+
"noStaticOnlyClass": "off",
29+
"noBannedTypes": "off"
30+
}
31+
}
32+
},
33+
"formatter": {
34+
"enabled": true
35+
},
36+
"javascript": {
37+
"formatter": {
38+
"quoteStyle": "single",
39+
"trailingCommas": "all",
40+
"semicolons": "asNeeded"
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)