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
Replace manual file commands with automated rake/yarn scripts
Update formatting documentation to use proper automated commands:
- Use `rake autofix` instead of manual `npx prettier --write <files>`
- Use `yarn start format.listDifferent` for checking
- Use `git add .` instead of manual file listing
- Emphasize automated workflow over manual file management
This makes the process much more reliable and less error-prone.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: docs/contributor-info/linters.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,24 +37,23 @@ Autofixing is a **HUGE** time saver!
37
37
38
38
```bash
39
39
# Check formatting
40
-
npx prettier --check .
40
+
yarn start format.listDifferent
41
41
42
-
# Fix formatting
43
-
npx prettier --write .
44
-
45
-
# Or use project scripts
42
+
# Fix formatting (includes all linters)
46
43
rake autofix
47
-
yarn start format.listDifferent # check only
44
+
45
+
# Or format only
46
+
yarn start format
48
47
```
49
48
50
49
### Merge Conflict Resolution
51
50
52
51
When resolving merge conflicts, **NEVER manually format**. Follow this sequence:
53
52
54
53
1. Resolve logical conflicts only
55
-
2.`git add <resolved-files>`
56
-
3.`npx prettier --write <resolved-files>`
57
-
4.`git add <resolved-files>` (if Prettier made changes)
54
+
2.`git add .` (or specific files)
55
+
3.`rake autofix` (fixes all formatting + linting)
56
+
4.`git add .` (if autofix made changes)
58
57
5. Continue with `git rebase --continue` or `git commit`
59
58
60
59
**Why this matters**: Manual formatting during conflict resolution creates "formatting wars" between tools and leads to back-and-forth formatting changes in PRs.
0 commit comments