-
Notifications
You must be signed in to change notification settings - Fork 0
/
biome.jsonc
88 lines (88 loc) · 2.54 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
87
88
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.json"],
"ignore": ["**/bin", "**/obj", "**/dist", "**/cs2-types", "*.personal.*"]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
// Enable ALL by default (not just recommended), disable as-needed.
"all": true,
"nursery": {
"recommended": true
},
"complexity": {
// Learn the language.
"noVoid": "off"
},
"correctness": {
// I generally know what I'm doing.
"noNodejsModules": "off"
},
"performance": {
// Virtually not an issue with modern bundlers.
// It can indeed cause slower builds though, but my projects generally
// don't have much unused symbols.
"noBarrelFile": "off",
// Same as noBarrelFile.
"noReExportAll": "off"
},
"security": {
// It's already pretty clear when you use it
// (`dangerouslySetInnerHTML={{ __html: html }}`)
"noDangerouslySetInnerHtml": "off"
},
"style": {
// I must admit I just like it.
"noCommaOperator": "off",
// Same reason as performance.noBarrelFile.
"noNamespaceImport": "off",
"noParameterProperties": "off",
// I like using template literals for hardcoded english strings, ex.
// exception error messages. This makes spotting them easier and also it
// makes it easier to use double or single quotes.
"noUnusedTemplateLiteral": "off",
// Keep it but with a few exceptions.
"useNamingConvention": {
"level": "error",
"options": {
"strictCase": false
}
}
},
"suspicious": {
// Double equals is not THAT bad, although I understand why the rule
// exists. If you know the language you can avoid the pitfalls and even
// enjoy the benefits of loose equality.
"noDoubleEquals": "off"
}
}
},
"formatter": {
"formatWithErrors": true,
"lineEnding": "lf",
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 80
},
"json": {
"formatter": {
"indentWidth": 2
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"semicolons": "always",
"arrowParentheses": "asNeeded",
"quoteProperties": "preserve",
"trailingCommas": "none",
"bracketSameLine": true
}
}
}