-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiome.jsonc
75 lines (75 loc) · 2.26 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
{
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"useEditorconfig": true,
// The above does not seem to be working yet, so let's repeat the relevant contents here
// TODO: On Biome update see if this can be removed
"indentStyle": "space"
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
},
"linter": {
// Base configuration for Node environment config, scripts and tests and third party code
"ignore": ["ext/**"],
"rules": {
"recommended": true,
"style": {
// Useful when used sparingly, e.g: don't double check tsconfig noUncheckedIndexedAccess
"noNonNullAssertion": "off"
}
}
},
"overrides": [
// Make Biome format this like npm, see: https://github.com/biomejs/biome/issues/2763
// TODO: On Biome update see if this can be removed
{
"include": ["package.json"],
"formatter": {
"lineWidth": 1
}
},
// Source code
{
"include": ["index.*", "livery-*.ts", "src/**/*.ts", "test/**/*.ts"],
"linter": {
"rules": {
// Let's be strict, including all rules ported from sonarjs and unicorn eslint plugins, etc.
"all": true,
"correctness": {
// TypeScript is better at checking this
"noUndeclaredVariables": "off"
},
"nursery": {
"useConsistentMemberAccessibility": "error"
},
"style": {
// Don't require strict pascal case for compatibility with DOM types like HTMLElementTagNameMap
// and we also frequently deal with third party names for Analytics properties and XML attributes, etc.
// TODO: Only disable this check where needed; but that's painful without block level biome-ignore support
"useNamingConvention": "off"
}
}
}
},
// Test code
{
"include": ["test/**/*.ts"],
"linter": {
"rules": {
"style": {
// Naming of our test files matches the file to be tested, p.e: Foo.ts and Foo.test.ts; not foo.test.ts
"useFilenamingConvention": "off"
}
}
}
}
]
}