Guidelines for implementing and using PostHog feature flags for early access features and A/B tests
globs: apps/web/hooks/useFeatureFlags.ts
alwaysApply: false
---
# PostHog Feature Flags
Guidelines for implementing feature flags using PostHog
Steady10 mentions in 2 weeks
No other project uses it yet
13k9mo agoReviewMountCreate a free account to mount
exceed a given Cognitive Complexity score.
- Don't nest describe() blocks too deeply in test files.
- Don't use unnecessary boolean casts.
- Don't use unnecessary callbacks with flatMap
Steady10 mentions in 2 weeks
No other project uses it yet
13k9mo agoReviewMountCreate a free account to mount
description:
globs:
alwaysApply: true
---
---
description: Rules and guidelines for writing and running React tests
globs: *.spec.tsx, *.test.tsx, *.test.ts, *.spec.ts
---
# Writing frontend tests
Place tests in __tests__ folder in the module
No other project uses it yet
13k20mo agoReviewMountCreate a free account to mount
Start dev server with hot reload
- `pnpm run build` - Build production bundle
- `pnpm test` - Run tests
### Quality Checks
- `pnpm run lint:fix` - Fix linting issues
- `pnpm run typecheck` - Type check
Steady12 mentions in 2 weeks
No other project uses it yet
12k2mo agoReviewMountCreate a free account to mount
Python Development
## Commands
### Testing and Linting
- `make format-python lint-python` - Format and lint code
- `cd tests && uv run pytest unit/ -q` - Run all unit tests in quiet mode
Steady12 mentions in 2 weeks
No other project uses it yet
12k2mo agoReviewMountCreate a free account to mount
install` - Install dependencies
- `pnpm run -r build` - Build all packages recursively
- `pnpm run -r test` - Test all packages recursively
- `pnpm run lint` - Lint all packages
- `pnpm run fmt:check .` - Check
Steady12 mentions in 2 weeks
No other project uses it yet
12k2mo agoReviewMountCreate a free account to mount