Skip to content

Commit b2192e5

Browse files
committed
chore(biome): Update Biome config to schema 2.1.4 and adjust rules
Upgrades the Biome configuration schema from 1.9.4 to 2.1.4, updates file include/ignore patterns, moves 'noVar' rule, and adds the 'assist' section for organizing imports. These changes align the configuration with the latest Biome standards and improve maintainability.
1 parent 25d677b commit b2192e5

File tree

1 file changed

+72
-76
lines changed

1 file changed

+72
-76
lines changed

biome.json

Lines changed: 72 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,74 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"files": {
4-
"ignore": [
5-
"**/*.bundle.js"
6-
],
7-
"ignoreUnknown": false
8-
},
9-
"formatter": {
10-
"enabled": true,
11-
"indentStyle": "tab",
12-
"indentWidth": 2,
13-
"lineEnding": "lf",
14-
"lineWidth": 320
15-
},
16-
"javascript": {
17-
"formatter": {
18-
"arrowParentheses": "asNeeded",
19-
"bracketSameLine": true,
20-
"quoteStyle": "double"
21-
}
22-
},
23-
"json": {
24-
"parser": {
25-
"allowComments": true,
26-
"allowTrailingCommas": true
27-
}
28-
},
29-
"linter": {
30-
"enabled": true,
31-
"rules": {
32-
"complexity": {
33-
"noForEach": "off",
34-
"noStaticOnlyClass": "off",
35-
"noUselessSwitchCase": "off",
36-
"useArrowFunction": "info",
37-
"useFlatMap": "off",
38-
"useLiteralKeys": "info"
39-
},
40-
"correctness": {
41-
"noInnerDeclarations": "info",
42-
"noSelfAssign": "off",
43-
"noSwitchDeclarations": "info",
44-
"noUnsafeOptionalChaining": "info"
45-
},
46-
"performance": {
47-
"noDelete": "info"
48-
},
49-
"recommended": true,
50-
"style": {
51-
"noNegationElse": "off",
52-
"noParameterAssign": "off",
53-
"noUselessElse": "off",
54-
"noVar": "info",
55-
"useDefaultParameterLast": "info",
56-
"useForOf": "error",
57-
"useNodejsImportProtocol": "error",
58-
"useNumberNamespace": "error",
59-
"useSingleVarDeclarator": "off"
60-
},
61-
"suspicious": {
62-
"noAssignInExpressions": "info",
63-
"noDoubleEquals": "info",
64-
"noFallthroughSwitchClause": "info",
65-
"noGlobalIsNan": "off",
66-
"useDefaultSwitchClauseLast": "off"
67-
}
68-
}
69-
},
70-
"organizeImports": {
71-
"enabled": true
72-
},
73-
"vcs": {
74-
"clientKind": "git",
75-
"enabled": true,
76-
"useIgnoreFile": true
77-
}
2+
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
3+
"files": {
4+
"includes": ["**", "!**/*.bundle.js"],
5+
"ignoreUnknown": false
6+
},
7+
"formatter": {
8+
"enabled": true,
9+
"indentStyle": "tab",
10+
"indentWidth": 2,
11+
"lineEnding": "lf",
12+
"lineWidth": 320
13+
},
14+
"javascript": {
15+
"formatter": {
16+
"arrowParentheses": "asNeeded",
17+
"bracketSameLine": true,
18+
"quoteStyle": "double"
19+
}
20+
},
21+
"json": {
22+
"parser": {
23+
"allowComments": true,
24+
"allowTrailingCommas": true
25+
}
26+
},
27+
"linter": {
28+
"enabled": true,
29+
"rules": {
30+
"complexity": {
31+
"noForEach": "off",
32+
"noStaticOnlyClass": "off",
33+
"noUselessSwitchCase": "off",
34+
"useArrowFunction": "info",
35+
"useFlatMap": "off",
36+
"useLiteralKeys": "info"
37+
},
38+
"correctness": {
39+
"noInnerDeclarations": "info",
40+
"noSelfAssign": "off",
41+
"noSwitchDeclarations": "info",
42+
"noUnsafeOptionalChaining": "info"
43+
},
44+
"performance": {
45+
"noDelete": "info"
46+
},
47+
"recommended": true,
48+
"style": {
49+
"noNegationElse": "off",
50+
"noParameterAssign": "off",
51+
"noUselessElse": "off",
52+
"useDefaultParameterLast": "info",
53+
"useForOf": "error",
54+
"useNodejsImportProtocol": "error",
55+
"useNumberNamespace": "error",
56+
"useSingleVarDeclarator": "off"
57+
},
58+
"suspicious": {
59+
"noAssignInExpressions": "info",
60+
"noDoubleEquals": "info",
61+
"noFallthroughSwitchClause": "info",
62+
"noGlobalIsNan": "off",
63+
"useDefaultSwitchClauseLast": "off",
64+
"noVar": "info"
65+
}
66+
}
67+
},
68+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
69+
"vcs": {
70+
"clientKind": "git",
71+
"enabled": true,
72+
"useIgnoreFile": true
73+
}
7874
}

0 commit comments

Comments
 (0)