From 12839b9f3ea381fd2b1236d1aca2d87c1cce47c0 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Wed, 6 Mar 2024 10:29:42 -0700 Subject: [PATCH] Add TODO about code style --- doc/TODO.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/TODO.md b/doc/TODO.md index 29b6e92..bf7d667 100644 --- a/doc/TODO.md +++ b/doc/TODO.md @@ -4,6 +4,10 @@ * Minimize undefined checks. The fact that we have them in so many places is a smell I don't like! +* Eliminate all positional parameters from functions with >1 parameter (partial exceptions are + OK for functions with obvious context, like + `const logMessage = (message: str, params: {...}) -> ...` + ### Names @@ -12,6 +16,7 @@ * selectedRegion -> selectedRegionName * selectedRegionObject -> selectedRegion + ### State * More consistent use of jotai-tanstack-query functions