From e87fbc4bb92a952f46cbe0d61d1b3471b922233f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 16 Feb 2020 14:04:17 +0400 Subject: feat(eslint): no-param-reassign Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/javascript/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 802bfc2..75dbe3f 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -160,7 +160,7 @@ - [ ] "no-obj-calls" - [ ] "no-octal" - [X] "no-octal-escape" -- [ ] "no-param-reassign" +- [X] "no-param-reassign" - [X] "no-path-concat" - [ ] "no-plusplus" - [ ] "no-process-env" diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json index 6f6f67a..2ff7b63 100644 --- a/src/rules/javascript/default.json +++ b/src/rules/javascript/default.json @@ -181,6 +181,12 @@ "tabWidth": 4 } ], + "no-param-reassign": [ + "warn", + { + "props": true + } + ], "max-lines": [ "off" ], -- cgit v1.2.3