mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 07:35:25 +00:00
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
This commit is contained in:
parent
d0116d52bd
commit
e1c0e04833
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user