From 7fbbab6e49f4ee5eed492b6db1d012be23d4d3f6 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Sat, 17 Jan 2026 22:13:16 +0000 Subject: [PATCH] chore(lint): add no-param-reassign rule Enable the no-param-reassign rule in oxlint to prevent function parameter reassignment. This enforces immutability of function parameters, improving code predictability and avoiding subtle bugs. --- .oxlintrc.jsonc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.oxlintrc.jsonc b/.oxlintrc.jsonc index 9fb4bfe..457afa5 100644 --- a/.oxlintrc.jsonc +++ b/.oxlintrc.jsonc @@ -42,6 +42,8 @@ "no-empty": "error", // Disallow empty functions "no-empty-function": "error", + // Disallow reassigning function parameters + "no-param-reassign": "error", // =================== // Override category defaults with custom options // ===================