From df848834f582a1cba6e275d4dd408eeb95f5ef26 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 01:54:49 +0400 Subject: feat(eslint): Rule "prefer-const" Signed-off-by: Valentin Popov --- src/rules/default.json | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/rules/default.json') diff --git a/src/rules/default.json b/src/rules/default.json index f6d347b..5a92435 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -388,6 +388,13 @@ "error", "never" ], + "prefer-const": [ + "error", + { + "destructuring": "any", + "ignoreReadBeforeAssign": false + } + ], "prefer-reflect": [ "off" ], -- cgit v1.2.3