Files
joplin/CLAUDE.md
Laurent Cozic 998b26d9a4 Doc: Update CLAUDE.md to specify whitespace rules
Clarified guidelines on whitespace changes in code.
2026-03-10 12:31:00 +00:00

960 B

Joplin Guidelines

Quick Reference

  • Tabs for indentation
  • Single quotes for strings
  • Proper TypeScript types (avoid any)
  • Comments should be only with // and should not contain jsdoc syntax
  • If you duplicate a substantial block of code, add a comment above it noting the duplication and referencing the original location.
  • When creating Jest tests, there should be only one describe() statement in the file.
  • Focus on testing essential behaviour and edge cases — avoid adding tests for every minor detail.
  • Avoid duplicating code in tests; when testing the same logic with different inputs, use test.each or shared helpers instead of repeating similar test blocks.
  • Do not make white space changes - do not add unnecessary new lines, or spaces to existing code, or wrap existing code.

Full Documentation