-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbiome.jsonc
More file actions
159 lines (154 loc) · 3.84 KB
/
biome.jsonc
File metadata and controls
159 lines (154 loc) · 3.84 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"formatWithErrors": true,
"indentWidth": 2,
"lineWidth": 80,
"lineEnding": "lf",
"attributePosition": "auto",
"bracketSpacing": true,
"expand": "auto",
"useEditorconfig": false,
"includes": ["**", "!./dist/**", "!./node_modules/**"]
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"arrowParentheses": "always",
"semicolons": "always",
"quoteProperties": "asNeeded",
"trailingCommas": "all"
}
},
"linter": {
"enabled": true,
"domains": {
"react": "recommended"
},
"rules": {
"recommended": true,
"a11y": "error",
"correctness": {
"recommended": true,
"noUnusedImports": "error",
"noUnusedVariables": "error",
"noNodejsModules": "error",
"noUnusedPrivateClassMembers": "error"
},
"style": {
"recommended": true,
"noNegationElse": "warn",
"noNestedTernary": "warn",
"noDefaultExport": "error",
"noEnum": "error",
"noNonNullAssertion": "error",
"useConst": "error",
"useConsistentCurlyBraces": "error",
"useNumericSeparators": "error",
"useSingleVarDeclarator": "error",
"noParameterAssign": "error",
"noSubstr": "error",
"noShoutyConstants": "error",
"noUnusedTemplateLiteral": "error",
"noYodaExpression": "error",
"useShorthandFunctionType": "error",
"useAtIndex": "error",
"useDefaultParameterLast": "error",
"useDeprecatedReason": "error",
"useExplicitLengthCheck": "error",
"useNumberNamespace": "error",
"useObjectSpread": "error",
"useThrowNewError": "error",
"useThrowOnlyError": "error",
"useForOf": "error",
"noParameterProperties": "error",
"useGroupedAccessorPairs": "error",
"useReadonlyClassProperties": "error",
"useConsistentMemberAccessibility": {
"level": "error",
"options": {
"accessibility": "noPublic"
}
},
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "shorthand"
}
},
// Personally, I hate using interfaces in my TypeScript code,
// and use type aliases exclusively. But they do have more of a
// a cost on the LSP, so to make sure we're not affecting
// users in larger codebases, we'll default to interfaces
"useConsistentTypeDefinitions": {
"level": "error",
"options": {
"style": "interface"
}
}
},
"suspicious": {
"recommended": true,
"useGuardForIn": "warn",
"noSkippedTests": "error",
"noFocusedTests": "error",
"noConsole": "error",
"noAlert": "error",
"noApproximativeNumericConstant": "error",
"noExplicitAny": "error",
"noConstEnum": "error",
"noEmptyBlockStatements": "error",
"noEvolvingTypes": "error",
"noGlobalIsFinite": "error",
"noTsIgnore": "error",
"noUnassignedVariables": "error",
"noVar": "error",
"useErrorMessage": "error",
"useIsArray": "error",
"useNumberToFixedDigitsArgument": "error"
}
}
},
"assist": {
"enabled": true,
"actions": {
"recommended": true,
"source": {
"organizeImports": "on"
}
}
},
"overrides": [
// Everything in the Void 0 ecosystem uses default exports for their
// config files
{
"includes": ["./**/tsdown.config.ts", "./**/vitest.config.ts"],
"linter": {
"rules": {
"style": {
"noDefaultExport": "off"
}
}
}
},
// A lot of the built-in code tools (including the Changesets GitHub
// Action) end up auto-expanding arrays. Just giving in and matching the
// output to make sure we don't run into failed jobs from automations
{
"includes": ["./**/package.json"],
"formatter": {
"expand": "always"
}
}
]
}