Skip to content

Commit 311c404

Browse files
committed
refactor: replace prettier/eslint with biome
1 parent 4d7ae9b commit 311c404

35 files changed

+687
-2369
lines changed

.github/workflows/build.yml

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

8484
- name: Run Linter
8585
if: always()
86-
run: npm run lint
86+
run: npm run lint:ci
8787

8888
- uses: dorny/test-reporter@1a288b62f8b75c0f433cbfdbc2e4800fbae50bd7
8989
if: ${{ (success() || failure()) && github.event.pull_request.head.repo.full_name == github.repository }}

.prettierrc

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

.vscode/settings.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,5 @@
77
"out": true // set this to false to include "out" folder in search results
88
},
99
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off",
11-
"editor.defaultFormatter": "esbenp.prettier-vscode",
12-
"[javascript]": {
13-
"editor.defaultFormatter": "esbenp.prettier-vscode"
14-
},
15-
"[typescript]": {
16-
"editor.defaultFormatter": "esbenp.prettier-vscode"
17-
},
18-
"[github-actions-workflow]": {
19-
"editor.defaultFormatter": "esbenp.prettier-vscode"
20-
}
10+
"typescript.tsc.autoDetect": "off"
2111
}

biome.jsonc

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"files": {
4+
"include": ["src/**"],
5+
"ignore": ["out", "test-workspaces", "node_modules", "test-results", ".vscode-test", "tmp", "typings"]
6+
},
7+
"formatter": {
8+
"enabled": true,
9+
"formatWithErrors": true,
10+
"ignore": [],
11+
"attributePosition": "auto",
12+
"indentStyle": "space",
13+
"indentWidth": 4,
14+
"lineWidth": 120,
15+
"lineEnding": "lf"
16+
},
17+
"linter": {
18+
"enabled": true,
19+
"rules": {
20+
"style": {
21+
"noNonNullAssertion": "off", // we use these assertions
22+
"noParameterAssign": "off", // useful for default values
23+
"useBlockStatements": {
24+
"level": "error",
25+
"fix": "safe"
26+
},
27+
"useEnumInitializers": "off"
28+
},
29+
"suspicious": {
30+
"noExplicitAny": "off" // used in areas where we work with dynamic JSON data
31+
},
32+
"correctness": {
33+
"noUnusedImports": {
34+
"level": "error",
35+
"fix": "safe"
36+
},
37+
"noSwitchDeclarations": "off"
38+
}
39+
}
40+
},
41+
"organizeImports": {
42+
"enabled": true
43+
},
44+
"javascript": {
45+
"formatter": {
46+
"arrowParentheses": "asNeeded",
47+
"bracketSameLine": true,
48+
"bracketSpacing": true,
49+
"quoteProperties": "asNeeded",
50+
"semicolons": "always",
51+
"trailingCommas": "none",
52+
"quoteStyle": "single"
53+
}
54+
},
55+
"json": {
56+
"formatter": {
57+
"trailingCommas": "none"
58+
}
59+
}
60+
}

eslint.config.mjs

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

0 commit comments

Comments
 (0)