Skip to content

Commit 8e27bca

Browse files
committed
chore: update deps, add ci
- add ci - add oxfmt as formatter - include package.json in eslint ignores
1 parent 1305bba commit 8e27bca

File tree

6 files changed

+205
-64
lines changed

6 files changed

+205
-64
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v6.0.2
17+
18+
- name: Bun setup
19+
uses: oven-sh/setup-bun@v2
20+
21+
- name: Install deps
22+
run: bun ci
23+
24+
- name: Format
25+
run: bun fmt:check
26+
27+
- name: Lint
28+
run: bun lint
29+
30+
- name: Build
31+
run: bun run build

bun.lock

Lines changed: 155 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const eslintConfig = antfu(
77
jsx: {
88
a11y: true,
99
},
10+
ignores: ["package.json"],
1011
},
1112
{
1213
name: "fantomstudy/rewrite",
@@ -46,7 +47,7 @@ const eslintConfig = antfu(
4647
},
4748
],
4849
},
49-
}
50+
},
5051
);
5152

5253
export default eslintConfig;

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
{
22
"name": "react-starter",
3-
"type": "module",
43
"version": "0.0.0",
54
"private": true,
5+
"type": "module",
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc -b && vite build",
9-
"lint": "eslint --fix",
10-
"preview": "vite preview"
9+
"preview": "vite preview",
10+
"fmt": "oxfmt",
11+
"fmt:check": "oxfmt --check",
12+
"lint": "eslint --fix ."
1113
},
1214
"dependencies": {
13-
"react": "^19.2.0",
14-
"react-dom": "^19.2.0"
15+
"react": "^19.2.4",
16+
"react-dom": "^19.2.4"
1517
},
1618
"devDependencies": {
17-
"@antfu/eslint-config": "^7.0.1",
18-
"@eslint/js": "^9.39.1",
19-
"@types/node": "^24.10.1",
20-
"@types/react": "^19.2.5",
19+
"@antfu/eslint-config": "^7.2.0",
20+
"@eslint-react/eslint-plugin": "^2.8.1",
21+
"@types/node": "^24.10.9",
22+
"@types/react": "^19.2.10",
2123
"@types/react-dom": "^19.2.3",
22-
"@vitejs/plugin-react": "^5.1.1",
23-
"eslint": "^9.39.1",
24+
"@vitejs/plugin-react": "^5.1.2",
25+
"eslint": "^9.39.2",
2426
"eslint-plugin-jsx-a11y": "^6.10.2",
2527
"eslint-plugin-react-hooks": "^7.0.1",
26-
"eslint-plugin-react-refresh": "^0.4.24",
27-
"globals": "^16.5.0",
28+
"eslint-plugin-react-refresh": "^0.4.26",
29+
"oxfmt": "^0.27.0",
2830
"typescript": "~5.9.3",
29-
"typescript-eslint": "^8.46.4",
3031
"vite": "npm:rolldown-vite@7.2.5"
3132
},
3233
"overrides": {

src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import "./index.css";
66
createRoot(document.getElementById("root")!).render(
77
<StrictMode>
88
<App />
9-
</StrictMode>
9+
</StrictMode>,
1010
);

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"references": [
3-
{ "path": "./tsconfig.app.json" },
4-
{ "path": "./tsconfig.node.json" }
5-
],
2+
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }],
63
"files": []
74
}

0 commit comments

Comments
 (0)