Skip to content

Commit a01ce71

Browse files
authored
Merge pull request #42 from Hi7cl4w/feat/add-biome-linter
feat: Add Biome as project linter and formatter
2 parents d03f9bf + 0acf5d1 commit a01ce71

File tree

9 files changed

+483
-880
lines changed

9 files changed

+483
-880
lines changed

.biomeignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Build output
2+
out/
3+
dist/
4+
5+
# Dependencies
6+
node_modules/
7+
8+
# Type definitions
9+
**/*.d.ts
10+
11+
# Config files
12+
webpack.config.js
13+
14+
# VSCode settings
15+
.vscode/
16+
17+
# Large files
18+
src/encoder.json

.eslintrc.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
cache: "npm"
2525
- run: npm install
26+
- run: npm run type-check
2627
- run: npm run lint
2728
- run: npm run compile

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
4-
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher"]
4+
"recommendations": ["biomejs.biome", "amodio.tsl-problem-matcher"]
55
}

biome.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"maxSize": 2097152
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+
"style": {
23+
"useBlockStatements": "warn",
24+
"noNonNullAssertion": "off"
25+
},
26+
"suspicious": {
27+
"noDoubleEquals": "warn",
28+
"noExplicitAny": "off",
29+
"noConstEnum": "off"
30+
},
31+
"complexity": {
32+
"noBannedTypes": "off",
33+
"noUselessConstructor": "off"
34+
}
35+
}
36+
},
37+
"javascript": {
38+
"formatter": {
39+
"quoteStyle": "double",
40+
"semicolons": "always"
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)