Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2

- name: Bun setup
uses: oven-sh/setup-bun@v2

- name: Install deps
run: bun ci

- name: Format
run: bun fmt:check

- name: Lint
run: bun lint

- name: Build
run: bun run build
241 changes: 174 additions & 67 deletions bun.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const eslintConfig = antfu(
jsx: {
a11y: true,
},
ignores: ["package.json"],
},
{
name: "fantomstudy/rewrite",
Expand Down Expand Up @@ -46,7 +47,7 @@ const eslintConfig = antfu(
},
],
},
}
},
);

export default eslintConfig;
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
{
"name": "react-starter",
"type": "module",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint --fix",
"preview": "vite preview"
"preview": "vite preview",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"lint": "eslint --fix ."
},
"dependencies": {
"react": "^19.2.0",
"react-dom": "^19.2.0"
"react": "^19.2.4",
"react-dom": "^19.2.4"
},
"devDependencies": {
"@antfu/eslint-config": "^7.0.1",
"@eslint/js": "^9.39.1",
"@types/node": "^24.10.1",
"@types/react": "^19.2.5",
"@antfu/eslint-config": "^7.2.0",
"@eslint-react/eslint-plugin": "^2.8.1",
"@types/node": "^24.10.9",
"@types/react": "^19.2.10",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1",
"eslint": "^9.39.1",
"@vitejs/plugin-react": "^5.1.2",
"eslint": "^9.39.2",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"eslint-plugin-react-refresh": "^0.4.26",
"oxfmt": "^0.27.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.46.4",
"vite": "npm:rolldown-vite@7.2.5"
"vite": "npm:rolldown-vite@7.3.1"
},
"overrides": {
"vite": "npm:rolldown-vite@7.2.5"
"vite": "npm:rolldown-vite@7.3.1"
}
}
4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"]
}
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import "./index.css";
createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>
</StrictMode>,
);
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
],
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }],
"files": []
}