mirror of https://github.com/langgenius/dify.git
chore: update AGENTS guidance for frontend tooling (#29228)
This commit is contained in:
parent
c012eddb47
commit
3dc3589b8c
|
|
@ -24,8 +24,8 @@ The codebase is split into:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd web
|
cd web
|
||||||
pnpm lint
|
|
||||||
pnpm lint:fix
|
pnpm lint:fix
|
||||||
|
pnpm type-check:tsgo
|
||||||
pnpm test
|
pnpm test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -39,7 +39,7 @@ pnpm test
|
||||||
## Language Style
|
## Language Style
|
||||||
|
|
||||||
- **Python**: Keep type hints on functions and attributes, and implement relevant special methods (e.g., `__repr__`, `__str__`).
|
- **Python**: Keep type hints on functions and attributes, and implement relevant special methods (e.g., `__repr__`, `__str__`).
|
||||||
- **TypeScript**: Use the strict config, lean on ESLint + Prettier workflows, and avoid `any` types.
|
- **TypeScript**: Use the strict config, rely on ESLint (`pnpm lint:fix` preferred) plus `pnpm type-check:tsgo`, and avoid `any` types.
|
||||||
|
|
||||||
## General Practices
|
## General Practices
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue