Skip to content

Commit 8622aec

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
add biome.json
1 parent 31f835b commit 8622aec

File tree

1 file changed

+124
-0
lines changed

1 file changed

+124
-0
lines changed

biome.json

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"diagnostics": {
4+
"maxDiagnostics": 1000
5+
},
6+
"vcs": {
7+
"enabled": true,
8+
"clientKind": "git",
9+
"useIgnoreFile": true
10+
},
11+
"files": {
12+
"ignoreUnknown": false,
13+
"ignore": ["node_modules", "dist", "build", "out", "coverage", ".next", ".nuxt"]
14+
},
15+
"formatter": {
16+
"enabled": true,
17+
"formatWithErrors": false,
18+
"indentStyle": "space",
19+
"indentWidth": 2,
20+
"lineWidth": 100
21+
},
22+
"organizeImports": {
23+
"enabled": true
24+
},
25+
"linter": {
26+
"enabled": true,
27+
"rules": {
28+
"recommended": true,
29+
"complexity": {
30+
"noExtraBooleanCast": "error",
31+
"noMultipleSpacesInRegularExpressionLiterals": "error",
32+
"noUselessCatch": "error",
33+
"noUselessTypeConstraint": "error",
34+
"noWith": "error"
35+
},
36+
"correctness": {
37+
"noConstAssign": "error",
38+
"noConstantCondition": "error",
39+
"noEmptyCharacterClassInRegex": "error",
40+
"noEmptyPattern": "error",
41+
"noGlobalObjectCalls": "error",
42+
"noInnerDeclarations": "error",
43+
"noInvalidConstructorSuper": "error",
44+
"noNewSymbol": "error",
45+
"noNonoctalDecimalEscape": "error",
46+
"noPrecisionLoss": "error",
47+
"noSelfAssign": "error",
48+
"noSetterReturn": "error",
49+
"noSwitchDeclarations": "error",
50+
"noUndeclaredVariables": "error",
51+
"noUnreachable": "error",
52+
"noUnreachableSuper": "error",
53+
"noUnsafeFinally": "error",
54+
"noUnsafeOptionalChaining": "error",
55+
"noUnusedLabels": "error",
56+
"noUnusedVariables": "error",
57+
"useIsNan": "error",
58+
"useValidForDirection": "error",
59+
"useYield": "error"
60+
},
61+
"security": {
62+
"noDangerouslySetInnerHtml": "warn",
63+
"noDangerouslySetInnerHtmlWithChildren": "error"
64+
},
65+
"style": {
66+
"noArguments": "error",
67+
"noVar": "error",
68+
"useConst": "error"
69+
},
70+
"suspicious": {
71+
"noAssignInExpressions": "error",
72+
"noAsyncPromiseExecutor": "error",
73+
"noCatchAssign": "error",
74+
"noClassAssign": "error",
75+
"noCompareNegZero": "error",
76+
"noControlCharactersInRegex": "error",
77+
"noDebugger": "error",
78+
"noDoubleEquals": "warn",
79+
"noDuplicateCase": "error",
80+
"noDuplicateClassMembers": "error",
81+
"noDuplicateObjectKeys": "error",
82+
"noDuplicateParameters": "error",
83+
"noEmptyBlockStatements": "warn",
84+
"noExplicitAny": "warn",
85+
"noExtraNonNullAssertion": "error",
86+
"noFallthroughSwitchClause": "error",
87+
"noFunctionAssign": "error",
88+
"noGlobalAssign": "error",
89+
"noImportAssign": "error",
90+
"noMisleadingCharacterClass": "error",
91+
"noPrototypeBuiltins": "error",
92+
"noRedeclare": "error",
93+
"noShadowRestrictedNames": "error",
94+
"noUnsafeDeclarationMerging": "error",
95+
"noUnsafeNegation": "error",
96+
"useGetterReturn": "error",
97+
"useValidTypeof": "error"
98+
}
99+
}
100+
},
101+
"javascript": {
102+
"formatter": {
103+
"quoteStyle": "double",
104+
"jsxQuoteStyle": "double",
105+
"quoteProperties": "asNeeded",
106+
"trailingCommas": "es5",
107+
"semicolons": "always",
108+
"arrowParentheses": "always",
109+
"bracketSpacing": true,
110+
"bracketSameLine": false
111+
}
112+
},
113+
"json": {
114+
"formatter": {
115+
"enabled": true,
116+
"indentStyle": "space",
117+
"indentWidth": 2
118+
},
119+
"parser": {
120+
"allowComments": true,
121+
"allowTrailingCommas": false
122+
}
123+
}
124+
}

0 commit comments

Comments
 (0)