Skip to content

Commit 4e00d4d

Browse files
authored
chore(lint): add no-param-reassign rule (#301)
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 4e00d4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.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)