readme
This commit is contained in:
parent
8053481244
commit
8c27c1f664
1 changed files with 28 additions and 60 deletions
88
README.md
88
README.md
|
@ -1,69 +1,37 @@
|
||||||
# React + TypeScript + Vite
|
# Rubellos Glücksspiel
|
||||||
|
|
||||||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
A fun, browser-based scratch card gambling game built with React and TypeScript.
|
||||||
|
|
||||||
Currently, two official plugins are available:
|
## Play Online
|
||||||
|
|
||||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
Try it here:
|
||||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
[https://hannover.ccc.de/~lubiana/rubbel/](https://hannover.ccc.de/~lubiana/rubbel/)
|
||||||
|
|
||||||
## Expanding the ESLint configuration
|
## Features
|
||||||
|
|
||||||
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
- **Scratch Card Gameplay:** Buy and scratch virtual cards to win money and
|
||||||
|
Gubble Points.
|
||||||
|
- **Tier System:** Unlock and play higher-value scratch cards as you progress.
|
||||||
|
- **Upgrades:** Spend Gubble Points in the Gubble Store to unlock powerful
|
||||||
|
upgrades (e.g., more winning numbers, auto-scratcher, bonus multipliers).
|
||||||
|
- **Play History:** Track your recent wins and card results.
|
||||||
|
- **Rescue Mechanic:** If you run out of money, the “cosmic Gubble spirits” may
|
||||||
|
give you a second chance!
|
||||||
|
- **Modern UI:** Clean, responsive interface with smooth animations.
|
||||||
|
|
||||||
```js
|
## Getting Started
|
||||||
export default tseslint.config([
|
|
||||||
globalIgnores(['dist']),
|
|
||||||
{
|
|
||||||
files: ['**/*.{ts,tsx}'],
|
|
||||||
extends: [
|
|
||||||
// Other configs...
|
|
||||||
|
|
||||||
// Remove tseslint.configs.recommended and replace with this
|
1. Clone the repo and install dependencies:
|
||||||
...tseslint.configs.recommendedTypeChecked,
|
```bash
|
||||||
// Alternatively, use this for stricter rules
|
pnpm install
|
||||||
...tseslint.configs.strictTypeChecked,
|
```
|
||||||
// Optionally, add this for stylistic rules
|
2. Start the development server:
|
||||||
...tseslint.configs.stylisticTypeChecked,
|
```bash
|
||||||
|
pnpm dev
|
||||||
|
```
|
||||||
|
3. Open your browser to `http://localhost:5173` (or as indicated in your
|
||||||
|
terminal).
|
||||||
|
|
||||||
// Other configs...
|
## License
|
||||||
],
|
|
||||||
languageOptions: {
|
|
||||||
parserOptions: {
|
|
||||||
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
||||||
tsconfigRootDir: import.meta.dirname,
|
|
||||||
},
|
|
||||||
// other options...
|
|
||||||
},
|
|
||||||
},
|
|
||||||
])
|
|
||||||
```
|
|
||||||
|
|
||||||
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
MIT
|
||||||
|
|
||||||
```js
|
|
||||||
// eslint.config.js
|
|
||||||
import reactX from 'eslint-plugin-react-x'
|
|
||||||
import reactDom from 'eslint-plugin-react-dom'
|
|
||||||
|
|
||||||
export default tseslint.config([
|
|
||||||
globalIgnores(['dist']),
|
|
||||||
{
|
|
||||||
files: ['**/*.{ts,tsx}'],
|
|
||||||
extends: [
|
|
||||||
// Other configs...
|
|
||||||
// Enable lint rules for React
|
|
||||||
reactX.configs['recommended-typescript'],
|
|
||||||
// Enable lint rules for React DOM
|
|
||||||
reactDom.configs.recommended,
|
|
||||||
],
|
|
||||||
languageOptions: {
|
|
||||||
parserOptions: {
|
|
||||||
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
||||||
tsconfigRootDir: import.meta.dirname,
|
|
||||||
},
|
|
||||||
// other options...
|
|
||||||
},
|
|
||||||
},
|
|
||||||
])
|
|
||||||
```
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue