Skip to content

Commit cc24c8b

Browse files
committed
chore: update linting and api
1 parent 23532ee commit cc24c8b

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

biome.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.3/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"includes": ["src/**/*.ts", "src/**/*.json", "__tests__/**/*.ts", "__tests__/**/*.json"],
10+
"ignoreUnknown": true
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2,
16+
"lineWidth": 120,
17+
"lineEnding": "lf"
18+
},
19+
"javascript": {
20+
"formatter": {
21+
"semicolons": "always",
22+
"trailingCommas": "all",
23+
"quoteStyle": "single",
24+
"arrowParentheses": "always",
25+
"bracketSpacing": true,
26+
"bracketSameLine": false
27+
}
28+
},
29+
"json": {
30+
"formatter": {
31+
"trailingCommas": "none",
32+
"indentWidth": 2
33+
}
34+
},
35+
"linter": {
36+
"enabled": true,
37+
"rules": {
38+
"recommended": true,
39+
"complexity": {
40+
"noForEach": "off",
41+
"useArrowFunction": "error"
42+
},
43+
"correctness": {
44+
"noUnusedVariables": "error",
45+
"noUnusedImports": "error"
46+
},
47+
"style": {
48+
"useConst": "error",
49+
"useNodejsImportProtocol": "off",
50+
"noNonNullAssertion": "off",
51+
"noUselessElse": "error",
52+
"useBlockStatements": "error"
53+
},
54+
"suspicious": {
55+
"noExplicitAny": "off",
56+
"noEmptyBlockStatements": "off",
57+
"noEmptyInterface": "off",
58+
"noImplicitAnyLet": "off"
59+
},
60+
"performance": {
61+
"noAccumulatingSpread": "error",
62+
"noDelete": "error"
63+
},
64+
"nursery": {
65+
"useSortedClasses": "off"
66+
}
67+
}
68+
},
69+
"assist": {
70+
"enabled": true
71+
}
72+
}

0 commit comments

Comments
 (0)