Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

docs: add ESLint guide to AGENTS.md (#31559)

lif8519b16cfc68
diff --git a/AGENTS.md b/AGENTS.md
index deab7c86294..7d96ac3a6d9 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -25,6 +25,30 @@ pnpm type-check:tsgo
pnpm test
```
+### Frontend Linting
+
+ESLint is used for frontend code quality. Available commands:
+
+```bash
+# Lint all files (report only)
+pnpm lint
+
+# Lint and auto-fix issues
+pnpm lint:fix
+
+# Lint specific files or directories
+pnpm lint:fix app/components/base/button/
+pnpm lint:fix app/components/base/button/index.tsx
+
+# Lint quietly (errors only, no warnings)
+pnpm lint:quiet
+
+# Check code complexity
+pnpm lint:complexity
+```
+
+**Important**: Always run `pnpm lint:fix` before committing. The pre-commit hook runs `lint-staged` which only lints staged files.
+
## Testing & Quality Practices
- Follow TDD: red → green → refactor.