From a47ef1866917858d89e1232bc1eeaca3d6bad5bd Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 21 Feb 2026 00:59:34 -0500 Subject: [PATCH] docs: add inline JS exception to guidelines Inline JS function calls in HTML attributes (e.g., onclick="myFunction()") are acceptable for simple interactions --- PROJECT_GUIDELINES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/PROJECT_GUIDELINES.md b/PROJECT_GUIDELINES.md index 608bf7f..b83a70a 100644 --- a/PROJECT_GUIDELINES.md +++ b/PROJECT_GUIDELINES.md @@ -28,6 +28,7 @@ - ❌ **NEVER use custom CSS** - TailwindCSS classes only - **⚠️ EXCEPTION**: `templates/error.templ` may have inline CSS because error pages must work when main app fails (404, server errors, CSS fails to load) - ❌ **NEVER use JavaScript** - convert all to TypeScript + - **⚠️ EXCEPTION**: Inline JS function calls in HTML attributes (e.g., `onclick="myFunction()"`) are acceptable for simple interactions - ❌ **NEVER use Object-Oriented Programming** (no classes, inheritance, or this-capture) - ✅ **DO use procedural/imperative style** as your default - ✅ **DO borrow functional techniques** when they simplify code