Skip to content

Commit 0ae2a4d

Browse files
committed
feat(claude): add you-might-not-need-an-effect slash command
1 parent 316bc8c commit 0ae2a4d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Arguments:
2+
- scope: what to analyze (default: your current changes). Examples: "diff to main", "PR #123", "src/components/", "whole codebase"
3+
- fix: whether to apply fixes (default: true). Set to false to only propose changes.
4+
5+
Steps:
6+
1. Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
7+
2. Analyze the specified scope for useEffect anti-patterns
8+
3. If fix=true, apply the fixes. If fix=false, propose the fixes without applying.

0 commit comments

Comments
 (0)