mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[eslint] Disable no-constant-condition and no-fallthrough
This commit is contained in:
@@ -15,6 +15,15 @@ module.exports = {
|
||||
|
||||
// Not valuable enough to enable
|
||||
"no-useless-escape": "off",
|
||||
|
||||
// There are valid use cases for loops with constant conditions where the body contains the
|
||||
// break
|
||||
"no-constant-condition": "off",
|
||||
|
||||
// eslint only knows about builtin control flow (eg throw, return, break) and not custom ones
|
||||
// like invariant.
|
||||
"no-fallthrough": "off",
|
||||
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
|
||||
// Explicitly casting to/through any is sometimes required, often for error messages to
|
||||
|
||||
Reference in New Issue
Block a user