From 740202d1e18ab4e69151ee845e8175608ec933a7 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 20 May 2021 15:33:22 +0100 Subject: [PATCH] Add eslint prefer-const rule thanks @soudblox --- .eslintrc.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index e6c717b..292672c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -24,6 +24,13 @@ module.exports = { 'semi': [ 'error', 'always' + ], + 'prefer-const': [ + 'error', + { + 'destructuring': 'any', + 'ignoreReadBeforeAssign': false + } ] } -}; +}; \ No newline at end of file