Skip to content

Commit 43239d4

Browse files
committed
Migrate from vite, prettier and eslint to rsbuild and biome
1 parent e7db30d commit 43239d4

File tree

42 files changed

+202
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+202
-204
lines changed

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ jobs:
3939
- name: Build
4040
run: bun run build
4141

42-
- name: Lint code
43-
run: bun lint
44-
4542
- name: Check evmcrispr types
46-
run: bun type-check
43+
run: bun check
4744

4845
- name: Tests
4946
if: steps.changed-files.outputs.any_changed == 'true'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
node-version: [16.x]
15+
node-version: [18.x]
1616
os: [ubuntu-latest]
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2121
fetch-depth: 0
2222

2323
- uses: oven-sh/setup-bun@v1
2424

2525
- name: Set up Node ${{ matrix.node-version }}
26-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@v4
2727
with:
2828
cache: "bun"
2929
node-version: ${{ matrix.node-version }}

.pretierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

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

apps/evmcrispr-terminal/.eslintrc.cjs

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

apps/evmcrispr-terminal/.pretierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/evmcrispr-terminal/biome.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3+
"extends": ["@repo/biome-config"]
4+
}

apps/evmcrispr-terminal/package.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,20 @@
4747
"zustand-x": "^3.0.3"
4848
},
4949
"devDependencies": {
50-
"@repo/eslint-config": "*",
51-
"@repo/prettier-config": "*",
50+
"@repo/biome-config": "*",
5251
"@repo/typescript-config": "*",
52+
"@rsbuild/core": "^0.7.10",
53+
"@rsbuild/plugin-react": "^0.7.10",
5354
"@types/react": "^18.3.3",
5455
"@types/react-dom": "^18.3.0",
5556
"@types/react-transition-group": "^4.4.10",
56-
"@types/use-persisted-state": "^0.3.4",
57-
"@vitejs/plugin-react": "^4.3.1",
58-
"eslint": "^8.57.0",
59-
"vite": "^5.2.1"
57+
"@types/use-persisted-state": "^0.3.4"
6058
},
6159
"scripts": {
62-
"dev": "vite --clearScreen false",
63-
"build": "tsc && vite build",
64-
"type-check": "tsc --noEmit",
65-
"preview": "vite preview",
66-
"lint": "eslint \"src/**/*.{ts,tsx}\""
60+
"dev": "rsbuild --clearScreen false",
61+
"build": "rsbuild build",
62+
"check": "tsc --noEmit && biome check --write",
63+
"preview": "rsbuild preview"
6764
},
6865
"license": "AGPL-3.0-or-later"
6966
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineConfig } from "@rsbuild/core";
2+
import { pluginReact } from "@rsbuild/plugin-react";
3+
4+
export default defineConfig({
5+
plugins: [pluginReact()],
6+
source: {
7+
entry: {
8+
main: "./src/main.tsx",
9+
},
10+
},
11+
html: {
12+
template: "./index.html",
13+
},
14+
server: {
15+
port: 3000,
16+
headers: {
17+
"Access-Control-Allow-Origin": "*",
18+
"Access-Control-Allow-Methods": "GET",
19+
"Access-Control-Allow-Headers":
20+
"X-Requested-With, content-type, Authorization",
21+
},
22+
},
23+
});

0 commit comments

Comments
 (0)