Skip to content

Commit 25de5b0

Browse files
authored
Merge pull request #161 from capralifecycle/replace-eslint-and-prettier-with-biome
replace eslint and prettier with biome
2 parents 6e7abca + fb4ab14 commit 25de5b0

File tree

9 files changed

+295
-1205
lines changed

9 files changed

+295
-1205
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3535
with:
36-
node-version: 22
36+
node-version: 24
3737

3838
- uses: capralifecycle/actions-lib/configure-npm@15d6e3ef41e608eb59e4c12c656018b832c0117c # v1.6.1
3939

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
nodejs 22.17.0
1+
nodejs 24
22
python 3.13.5

biome.jsonc

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": ["src/**"]
11+
},
12+
"formatter": {
13+
"formatWithErrors": false,
14+
"indentStyle": "space",
15+
"indentWidth": 2,
16+
"lineWidth": 80
17+
},
18+
"linter": {
19+
"rules": {
20+
"recommended": true,
21+
"complexity": {
22+
"noStaticOnlyClass": "off",
23+
"noForEach": "off"
24+
},
25+
"correctness": {
26+
"noUnusedImports": "warn"
27+
},
28+
"suspicious": {
29+
"noExplicitAny": "off"
30+
},
31+
"style": {
32+
"useSelfClosingElements": "warn",
33+
"noParameterAssign": "error",
34+
"useAsConstAssertion": "error",
35+
"useDefaultParameterLast": "error",
36+
"useEnumInitializers": "error",
37+
"useSingleVarDeclarator": "error",
38+
"noUnusedTemplateLiteral": "error",
39+
"useNumberNamespace": "error",
40+
"noInferrableTypes": "error",
41+
"noUselessElse": "error",
42+
"noNonNullAssertion": "off"
43+
}
44+
}
45+
},
46+
"javascript": {
47+
"formatter": {
48+
"semicolons": "asNeeded",
49+
"quoteStyle": "double"
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)