This is a Twilight Imperium 4 web application built with React, Vite, and TypeScript.
- React 18 - UI framework
- Vite - Build tool and development server
- TypeScript - Type safety and better developer experience
- Mantine - UI component library
- ESLint - Code linting with TypeScript support
# Install dependencies
yarn install
# Start development server
yarn dev
# Type checking
yarn type-check
# Build for production
yarn build
# Preview production build
yarn previewThe project uses two TypeScript configurations:
tsconfig.json- Main configuration for source codetsconfig.node.json- Configuration for build tools (Vite config, etc.)
- Strict type checking
- Path mapping with
@/*alias forsrc/* - React JSX support
- JSON module resolution
- Unused variable detection
- Global types can be added to
src/types/global.d.ts - Component-specific types should be defined in the same file or nearby
- Third-party library types are automatically included when available
ESLint is configured to work with both JavaScript and TypeScript files:
- JavaScript/JSX files: Standard React rules
- TypeScript/TSX files: Additional TypeScript-specific rules
- Automatic unused variable detection
- React hooks rules enforcement