Skip to content

Commit d9bdca4

Browse files
committed
fix: biome fmt
1 parent 77dc42e commit d9bdca4

File tree

6 files changed

+77
-65
lines changed

6 files changed

+77
-65
lines changed

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
"source.organizeImports.biome": "explicit",
1313
"quickfix.biome": "explicit"
1414
}
15-
}
15+
}

biome.json

+48-48
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"files": {
4-
"ignore": [
5-
"node_modules",
6-
"test-results",
7-
"playwright-report",
8-
"package.json",
9-
"dist"
10-
]
11-
},
12-
"organizeImports": {
13-
"enabled": true
14-
},
15-
"linter": {
16-
"enabled": true,
17-
"rules": {
18-
"recommended": true,
19-
"complexity": {
20-
"noForEach": "off"
21-
},
22-
"suspicious": {
23-
"noExplicitAny": "off"
24-
},
25-
"style": {
26-
"noNonNullAssertion": "off"
27-
},
28-
"correctness": {
29-
"noUnusedImports": "error",
30-
"noUnusedVariables": "error",
31-
"noUnusedPrivateClassMembers": "error"
32-
}
33-
}
34-
},
35-
"formatter": {
36-
"enabled": true
37-
},
38-
"javascript": {
39-
"formatter": {
40-
"enabled": true,
41-
"semicolons": "asNeeded",
42-
"quoteStyle": "single",
43-
"indentWidth": 2
44-
},
45-
"linter": {
46-
"enabled": true
47-
}
48-
}
49-
}
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"files": {
4+
"ignore": [
5+
"node_modules",
6+
"test-results",
7+
"playwright-report",
8+
"package.json",
9+
"dist"
10+
]
11+
},
12+
"organizeImports": {
13+
"enabled": true
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true,
19+
"complexity": {
20+
"noForEach": "off"
21+
},
22+
"suspicious": {
23+
"noExplicitAny": "off"
24+
},
25+
"style": {
26+
"noNonNullAssertion": "off"
27+
},
28+
"correctness": {
29+
"noUnusedImports": "error",
30+
"noUnusedVariables": "error",
31+
"noUnusedPrivateClassMembers": "error"
32+
}
33+
}
34+
},
35+
"formatter": {
36+
"enabled": true
37+
},
38+
"javascript": {
39+
"formatter": {
40+
"enabled": true,
41+
"semicolons": "asNeeded",
42+
"quoteStyle": "single",
43+
"indentWidth": 2
44+
},
45+
"linter": {
46+
"enabled": true
47+
}
48+
}
49+
}

commitlint.config.js

+21-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
import _default from '@commitlint/config-conventional'
22

33
export default {
4-
extends: ['@commitlint/config-conventional'],
5-
rules: {
6-
..._default.rules,
7-
'type-enum': [
8-
2,
9-
'always',
10-
['fix', 'test', 'tooling', 'refactor', 'revert', 'example', 'docs', 'format', 'feat', 'chore']
11-
]
12-
}
13-
}
4+
extends: ['@commitlint/config-conventional'],
5+
rules: {
6+
..._default.rules,
7+
'type-enum': [
8+
2,
9+
'always',
10+
[
11+
'fix',
12+
'test',
13+
'tooling',
14+
'refactor',
15+
'revert',
16+
'example',
17+
'docs',
18+
'format',
19+
'feat',
20+
'chore',
21+
],
22+
],
23+
},
24+
}

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"check": "biome check .",
3232
"build": "tsc -p tsconfig.build.json",
3333
"prepare": "husky",
34-
"test": "tsx --test tests/index.test.ts"
34+
"test": "tsx --test tests/index.test.ts",
35+
"test:coverage": "c8 pnpm test"
3536
},
3637
"devDependencies": {
3738
"@biomejs/biome": "^1.9.4",
@@ -48,4 +49,4 @@
4849
"typescript": "~5.6.3"
4950
},
5051
"packageManager": "[email protected]+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
51-
}
52+
}

tsconfig.build.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"exclude": ["tests"]
4-
}
2+
"extends": "./tsconfig.json",
3+
"exclude": ["tests"]
4+
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"noImplicitAny": true
1616
},
1717
"include": ["src", "tests"]
18-
}
18+
}

0 commit comments

Comments
 (0)