From e1c0e04833ca6bd0f50df8ac4ce3426f5c7dc538 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Thu, 12 Jan 2017 10:16:46 -0800 Subject: [PATCH] add `no-const-assign` rule Summary: Adds the `no-const-assign` rule to our `.eslintrc`, because sometime people assign to `const`. Reviewed By: bestander, jeanlauliac Differential Revision: D4409485 fbshipit-source-id: c74ad9649ec665e3f2ba2da7843f4e261303c9e7 --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index d292a9b3b..f1f81f0ff 100644 --- a/.eslintrc +++ b/.eslintrc @@ -78,6 +78,7 @@ "comma-dangle": 0, // disallow trailing commas in object literals "no-cond-assign": 1, // disallow assignment in conditional expressions "no-console": 0, // disallow use of console (off by default in the node environment) + "no-const-assign": 2, // disallow assignment to const-declared variables "no-constant-condition": 0, // disallow use of constant expressions in conditions "no-control-regex": 1, // disallow control characters in regular expressions "no-debugger": 1, // disallow use of debugger