aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-16 13:04:17 +0300
committerValentin Popov <info@valentineus.link>2020-02-16 13:04:17 +0300
commite87fbc4bb92a952f46cbe0d61d1b3471b922233f (patch)
tree7455d65d945f9225159d8ba704053bc41c6e3ae1
parentbbf940aafeb564e6dc6023ea8022ba424e52cc05 (diff)
downloadeslint-config-e87fbc4bb92a952f46cbe0d61d1b3471b922233f.tar.xz
eslint-config-e87fbc4bb92a952f46cbe0d61d1b3471b922233f.zip
feat(eslint): no-param-reassign
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/javascript/default.json6
2 files changed, 7 insertions, 1 deletions
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"
],