chore: update .gitignore and improve coding standards documentation

- Added .cursor/sessions/* to .gitignore to prevent session files from being tracked.
- Enhanced coding standards in SKILL.md by adding semicolons to TypeScript examples for consistency.
- Improved formatting in continuous learning, detail layout, and other SKILL.md files for better readability.

These changes aim to streamline development processes and maintain code quality across the project.
This commit is contained in:
shancheas
2026-08-25 17:50:17 +07:00
parent ff6814d038
commit f2f0be111a
48 changed files with 962 additions and 742 deletions
+10 -10
View File
@@ -37,8 +37,8 @@ Standards for this TypeScript/React frontend. Not a NestJS API.
### Naming
```typescript
const searchQuery = 'widget'
const isAuthenticated = true
const searchQuery = 'widget';
const isAuthenticated = true;
async function fetchVehicleType(id: string) {}
function isValidCode(code: string): boolean {}
@@ -47,8 +47,8 @@ function isValidCode(code: string): boolean {}
### Immutability (CRITICAL)
```typescript
const updated = { ...row, name: 'New' }
const nextItems = [...items, newItem]
const updated = { ...row, name: 'New' };
const nextItems = [...items, newItem];
```
Never mutate: no `push`, `splice`, or in-place property assignment on shared state.
@@ -71,12 +71,12 @@ No `any`. Prefer entity types in `domain/entities` and DTOs next to transformers
## Imports (this repo)
```ts
import { Button, Text } from '@repo/ui/components'
import { FieldTextInput } from '@repo/ui/form'
import { EnterpriseModuleProvider } from '@repo/ui/foundations'
import { compose, required } from '@repo/ui/validators'
import { createHttpClient } from '@repo/core-api/http-client'
import { CommonRemoteDataServices } from '@repo/core-api/data-services'
import { Button, Text } from '@repo/ui/components';
import { FieldTextInput } from '@repo/ui/form';
import { EnterpriseModuleProvider } from '@repo/ui/foundations';
import { compose, required } from '@repo/ui/validators';
import { createHttpClient } from '@repo/core-api/http-client';
import { CommonRemoteDataServices } from '@repo/core-api/data-services';
```
Do not import `@mantine/core` or axios in `apps/web` feature code.