Skip to content

Commit 7fbbab6

Browse files
committed
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.
1 parent 92f42dc commit 7fbbab6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.oxlintrc.jsonc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"no-empty": "error",
4343
// Disallow empty functions
4444
"no-empty-function": "error",
45+
// Disallow reassigning function parameters
46+
"no-param-reassign": "error",
4547
// ===================
4648
// Override category defaults with custom options
4749
// ===================

0 commit comments

Comments
 (0)