fix: add TypeScript declarations for SCSS modules and images, consolidate CI workflows
- Add type declarations for .module.scss files - Add type declarations for image imports (png, jpg, svg, etc.) - Update tsconfig.json to include new type declaration files - Consolidate duplicate lint/typecheck workflows into single Code Quality Check - Remove redundant pr-lint-check.yml and push-lint-check.yml - Unified workflow runs both ESLint and TypeScript checks
This commit is contained in:
19
AGENTS.md
19
AGENTS.md
@@ -55,17 +55,6 @@
|
||||
|
||||
## Development Workflow
|
||||
|
||||
### Commands
|
||||
- `pnpm dev` - Start dev server (port 4000)
|
||||
- `pnpm build` - Production build
|
||||
- `pnpm start` - Start production server
|
||||
- `pnpm lint` - Check for linting issues
|
||||
- `pnpm lintfix` - Auto-fix linting issues
|
||||
- `pnpm typecheck` - Run TypeScript type checking
|
||||
- `pnpm security:audit` - Run security vulnerability scan
|
||||
- `pnpm security:check` - Generate security report (JSON)
|
||||
- `pnpm security:outdated` - Check for outdated dependencies
|
||||
|
||||
### Windsurf Commands Helper Script
|
||||
The project includes `windsurf-commands.sh` for common development tasks:
|
||||
|
||||
@@ -83,13 +72,7 @@ The project includes `windsurf-commands.sh` for common development tasks:
|
||||
- Script provides consistent interface for development commands
|
||||
- All commands use `pnpm` internally
|
||||
- Includes error handling and user-friendly output with emojis
|
||||
- Can be used interchangeably with direct `pnpm run` commands
|
||||
|
||||
### Before Committing
|
||||
1. Run `pnpm run lintfix` and `pnpm run lint` (or use `./windsurf-commands.sh lintfix` and `./windsurf-commands.sh lint`)
|
||||
2. Run `pnpm run typecheck` (or `./windsurf-commands.sh typecheck`) to ensure TypeScript compiles
|
||||
3. Run `pnpm run security:audit` (or `./windsurf-commands.sh security:audit`) to check for vulnerabilities
|
||||
4. Test changes in browser
|
||||
- Avoid using `pnpm run` commands directly
|
||||
|
||||
## File Naming
|
||||
- **Components**: PascalCase (`MainPage.tsx`)
|
||||
|
||||
Reference in New Issue
Block a user