Skip to content

Commit 538472c

Browse files
committed
upgrade biome
1 parent eea53e9 commit 538472c

File tree

1 file changed

+90
-32
lines changed

1 file changed

+90
-32
lines changed

biome.json

Lines changed: 90 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,92 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3-
"vcs": {
4-
"enabled": false,
5-
"clientKind": "git",
6-
"useIgnoreFile": false
7-
},
8-
"files": {
9-
"ignoreUnknown": false
10-
},
11-
"formatter": {
12-
"enabled": true,
13-
"indentStyle": "tab"
14-
},
15-
"linter": {
16-
"enabled": true,
17-
"rules": {
18-
"recommended": true
19-
}
20-
},
21-
"javascript": {
22-
"formatter": {
23-
"quoteStyle": "double"
24-
}
25-
},
26-
"assist": {
27-
"enabled": true,
28-
"actions": {
29-
"source": {
30-
"organizeImports": "on"
31-
}
32-
}
33-
}
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"includes": ["src/**/*.tsx"],
10+
"ignoreUnknown": false
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2,
16+
"lineWidth": 100
17+
},
18+
"linter": {
19+
"enabled": true,
20+
"rules": {
21+
"recommended": true,
22+
"performance": {
23+
"noImgElement": "off"
24+
},
25+
"style": {
26+
"noNonNullAssertion": "off",
27+
"noParameterAssign": "warn",
28+
"useImportType": "warn"
29+
},
30+
"complexity": {
31+
"useArrowFunction": "error",
32+
"noForEach": "off"
33+
},
34+
"a11y": {
35+
"noRedundantRoles": "off",
36+
"noSvgWithoutTitle": "off",
37+
"useValidAnchor": "off",
38+
"useSemanticElements": "off"
39+
},
40+
"correctness": {
41+
"noUnusedImports": { "level": "error", "fix": "safe" },
42+
"useExhaustiveDependencies": "off",
43+
"useHookAtTopLevel": "error",
44+
"noChildrenProp": "off"
45+
},
46+
"suspicious": {
47+
"noDocumentCookie": "off",
48+
"noExplicitAny": "off",
49+
"noArrayIndexKey": "off"
50+
},
51+
"security": {
52+
"noDangerouslySetInnerHtml": "off"
53+
},
54+
"nursery": {
55+
"useSortedClasses": {
56+
"level": "error",
57+
"fix": "safe",
58+
"options": {
59+
"attributes": ["classList"],
60+
"functions": [
61+
"twMerge",
62+
"twJoin",
63+
"tv",
64+
"composeRenderProps",
65+
"composeTailwindRenderProps"
66+
]
67+
}
68+
}
69+
}
70+
}
71+
},
72+
"javascript": {
73+
"formatter": {
74+
"quoteStyle": "double",
75+
"arrowParentheses": "always",
76+
"bracketSameLine": false,
77+
"bracketSpacing": true,
78+
"jsxQuoteStyle": "double",
79+
"quoteProperties": "asNeeded",
80+
"semicolons": "asNeeded",
81+
"trailingCommas": "all"
82+
}
83+
},
84+
"assist": {
85+
"enabled": true,
86+
"actions": {
87+
"source": {
88+
"organizeImports": "on"
89+
}
90+
}
91+
}
3492
}

0 commit comments

Comments
 (0)