-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiome.jsonc
86 lines (86 loc) · 2.5 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
86
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
// Global configuration.
"formatter": {
"indentStyle": "space",
"indentWidth": 2
},
"linter": {
"rules": {
"all": true,
"correctness": {
// Still required for now.
"noNodejsModules": "off",
// No support for TypeScript aliases yet.
"noUndeclaredDependencies": "off",
// Since we're using a bundler, this is unnecessary.
"useImportExtensions": "off"
},
"nursery": {},
"performance": {
// Since we're using a bundler, this is unnecessary.
"noBarrelFile": "off",
// Since we're using a bundler, this is unnecessary.
"noReExportAll": "off"
},
"style": {
// Required for Remix.
"noDefaultExport": "off",
// Requires more boilerplate for no real readability benefit.
"noImplicitBoolean": "off",
// Helpful for some libraries, e.g. Node built-ins.
"noNamespaceImport": "off",
// Requires more boilerplate for no real readability benefit.
"useBlockStatements": "off",
// Requires more boilerplate in some instances for no real readability
// benefit.
"useCollapsedElseIf": "off",
// Requires more boilerplate for no real readability benefit.
"useExplicitLengthCheck": "off",
// While `for...of` is more readable, it's sometimes substantially slower
// than an index-based loop.
"useForOf": "off",
// React often uses non-standard naming, e.g. in component properties.
"useNamingConvention": "off",
// Conflicts with some Remix route conventions.
"useFilenamingConvention": "off"
},
"suspicious": {
// Async functions without `await` are still useful, since exceptions
// reject the promise instead of being synchronously thrown.
"useAwait": "off",
// We're using React.
"noReactSpecificProps": "off",
// Console logging is useful in production, too.
"noConsole": "off"
}
}
},
"organizeImports": {},
// Project configuration.
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
// Language configuration.
"css": {
"formatter": {
"enabled": true
},
"linter": {
"enabled": true
},
"parser": {
"cssModules": true
}
},
"javascript": {
"formatter": {
"semicolons": "asNeeded"
}
},
"json": {
"formatter": {}
}
}