Skip to content

Commit 3330e49

Browse files
committed
major refactoring
- use typescript - simplify configuration - update dependencies
1 parent b6d440b commit 3330e49

28 files changed

Lines changed: 1610 additions & 1627 deletions

README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,7 @@
1010

1111
## Editing players and teams
1212

13-
Edit `src/data.js`
14-
15-
**Example**
16-
17-
```js
18-
export const teams = {
19-
red: {
20-
id: "red",
21-
playerNames: ["bps"],
22-
sortOrder: 1,
23-
},
24-
blue: {
25-
id: "blue",
26-
playerNames: ["Milton"],
27-
sortOrder: 2,
28-
},
29-
};
30-
31-
export const players = {
32-
"AiRman": Player("AiRman", "pl"),
33-
"Andeh": Player("Andeh", "se"),
34-
"anni": Player("anni", "de"),
35-
"badsebi": Player("badsebi", "pl"),
36-
};
37-
```
13+
Edit `src/config.ts`
3814

3915
## Development
4016

biome.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": true,
10+
"includes": [
11+
"src/**/*.ts",
12+
"src/**/*.tsx",
13+
"!src/**/config.ts",
14+
"index.html",
15+
"biome.json",
16+
"package.json",
17+
"tsconfig.json",
18+
"vite.config.ts"
19+
]
20+
},
21+
"assist": {
22+
"enabled": true,
23+
"actions": {
24+
"source": {
25+
"organizeImports": "on"
26+
}
27+
}
28+
},
29+
"linter": {
30+
"rules": {
31+
"a11y": "off",
32+
"correctness": {
33+
"noPrivateImports": "error",
34+
"useUniqueElementIds": "off"
35+
},
36+
"performance": {
37+
"noReExportAll": "error"
38+
}
39+
}
40+
},
41+
"formatter": {
42+
"indentStyle": "space",
43+
"indentWidth": 2
44+
}
45+
}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>GetQuad Draft</title>
88
</head>
9-
<body>
9+
<body class="min-h-screen">
1010
<div id="root"></div>
11-
<script type="module" src="/src/index.jsx"></script>
11+
<script type="module" src="/src/index.tsx"></script>
1212
<noscript>You need to enable JavaScript to run this app.</noscript>
1313
</body>
1414
</html>

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,25 @@
55
"dev": "vite",
66
"build": "vite build --base=https://draft.quake.world/",
77
"preview": "vite preview",
8-
"format": "prettier --write src"
8+
"format": "biome check --fix"
99
},
1010
"dependencies": {
11-
"@types/react": "^18.3.0",
12-
"@types/react-dom": "^18.3.0",
13-
"@vitejs/plugin-react": "^4.2.1",
14-
"autoprefixer": "^10.4.19",
15-
"js-confetti": "^0.12.0",
16-
"lodash.chunk": "^4.2.0",
17-
"postcss": "^8.4.38",
18-
"react": "^18.3.0",
11+
"@tailwindcss/vite": "^4.1.13",
12+
"@types/node": "^24.5.2",
13+
"@types/react": "^19.1.13",
14+
"@types/react-beautiful-dnd": "^13.1.8",
15+
"@types/react-dom": "^19.1.9",
16+
"@vitejs/plugin-react": "^5.0.3",
17+
"clsx": "^2.1.1",
18+
"js-confetti": "^0.13.1",
19+
"react": "^19.1.1",
1920
"react-beautiful-dnd": "^13.1.1",
20-
"react-dom": "^18.3.0",
21-
"sass": "^1.75.0",
22-
"tailwindcss": "^3.4.3",
23-
"vite": "^5.2.10"
21+
"react-dom": "^19.1.1",
22+
"remeda": "^2.32.0",
23+
"tailwindcss": "^4.1.13",
24+
"vite": "^7.1.7"
2425
},
2526
"devDependencies": {
26-
"prettier": "^3.2.5"
27+
"@biomejs/biome": "^2.2.4"
2728
}
2829
}

0 commit comments

Comments
 (0)