You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,6 @@ Key commands for working with this repository:
55
55
-**`pnpm test`** - Run unit tests across all packages
56
56
-**`pnpm build`** - Build all packages
57
57
-**`pnpm -w changelog`** - Update changelogs
58
-
-**`pnpm -w version`** - Bump versions across packages
59
58
60
59
## AI Development Assistant Context
61
60
@@ -91,4 +90,29 @@ When working on this repository, prioritize:
91
90
4.**Building**: Use `pnpm build` or `pnpm start` for development builds
92
91
5.**Testing**: Use `pnpm test` for unit tests, `pnpm e2e` for E2E tests
93
92
94
-
For detailed implementation guidance, refer to the specific requirement documents linked above.
93
+
For detailed implementation guidance, refer to the specific requirement documents linked above.
94
+
95
+
## How-To's
96
+
97
+
### Code Linting
98
+
99
+
ESLint with Prettier integration handles code quality and formatting. Fix errors using cli as much as possible, manual fixing is a last resort.
100
+
101
+
#### Key Rules
102
+
103
+
1.**Location**: Always `cd` into widget directory (e.g., `packages/pluggableWidgets/combobox-web/`) before running lint commands
104
+
2.**Command**: Use `pnpm run lint` (with optional `--fix` for fixing), this is custom command, not eslint - do not pass any extra arguments or filenames
105
+
3.**Focus**: Fix only errors and warnings in files you modified; ignore warnings in untouched files
106
+
107
+
#### Workflow
108
+
109
+
1.**Check**: Run `pnpm run lint`
110
+
- Output shows `prettier/prettier` violations (formatting) and ESLint rule errors
111
+
112
+
2.**Auto-fix**: Run `pnpm run lint --fix`
113
+
- Fixes Prettier formatting and auto-fixable ESLint rules
114
+
- Note: after fixes, this checks for errors as `pnpm run lint` would do, no need to rerun `pnpm run lint` before next step
115
+
116
+
3.**Manual fix**: Edit code directly for remaining errors
117
+
118
+
4.**Verify**: Re-run `pnpm run lint` until output shows 0 errors or passes silently
0 commit comments