generated from sripwoud/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.biome.jsonc
85 lines (85 loc) · 2.44 KB
/
.biome.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
// organize imports with dprint
"organizeImports": {
"enabled": false,
},
// format with dprint
"formatter": {
"enabled": false,
},
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true,
},
},
"linter": {
"enabled": true,
"ignore": [".next", "dist", "out"],
"rules": {
"recommended": true,
"complexity": {
"useLiteralKeys": "off",
},
"nursery": {
"noDuplicateElseIf": "error",
"noNestedTernary": "error",
"noStaticElementInteractions": "error",
"noTemplateCurlyInString": "error",
"useCollapsedIf": "error",
"useComponentExportOnlyModules": "error",
"useConsistentCurlyBraces": "error",
},
"style": {
"noDefaultExport": "error",
"noNegationElse": "error",
"noShoutyConstants": "error",
"useCollapsedElseIf": "error",
"useForOf": "error",
"useShorthandAssign": "error",
"useThrowNewError": "error",
"useThrowOnlyError": "error",
},
},
},
"overrides": [
{
// using import type breaks nest dependency injection
"include": [
"apps/server/src/app.controller.ts",
"apps/server/src/*/*.controller.ts",
"apps/server/src/*/*.router.ts",
"apps/server/src/*/*.service.ts",
"apps/server/src/trpc/trpc.context.ts",
],
"linter": { "rules": { "style": { "useImportType": "off" } } },
},
{
"include": [
"apps/client/src/hooks/useAuth.ts",
"apps/client/src/hooks/useIdentity.ts",
"apps/client/src/hooks/useSendFeedback.ts",
"apps/client/src/components/withAuth.tsx",
"apps/client/src/app/[groupId]/[questionId]/page.tsx",
],
"linter": { "rules": { "correctness": { "useExhaustiveDependencies": "off" } } },
},
{
"include": [
"apps/client/tailwind.config.ts",
"apps/client/src/app/**/layout.tsx",
"apps/client/src/app/**/page.tsx",
"apps/client/*.mjs",
],
"linter": { "rules": { "style": { "noDefaultExport": "off" } } },
},
{
"include": [
"apps/client/src/app/layout.tsx",
"apps/client/src/app/[groupId]/page.tsx",
"apps/client/src/app/[groupId]/[questionId]/page.tsx",
],
"linter": { "rules": { "nursery": { "useComponentExportOnlyModules": "off" } } },
},
],
}