We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 061a7f4 commit 9a5ef70Copy full SHA for 9a5ef70
1 file changed
CLAUDE.md
@@ -348,6 +348,12 @@ Use these standardized patterns for consistency across all Socket projects:
348
- **Semicolons**: Omit semicolons
349
- **Line length**: Target 80 characters where practical
350
- **List formatting**: Use `-` for bullets, not `•`
351
+- **String interpolation**: 🚨 MANDATORY - Use template literals instead of string concatenation for dynamic strings
352
+ - ✅ CORRECT: `` `Error: ${message}` ``
353
+ - ✅ CORRECT: `` `Cannot load '${path}': ${error.message}` ``
354
+ - ❌ FORBIDDEN: `'Error: ' + message`
355
+ - ❌ FORBIDDEN: `'Cannot load \'' + path + '\': ' + error.message`
356
+ - **Rationale**: Template literals are more readable, less error-prone, and handle escaping automatically
357
358
## Commands
359
0 commit comments