You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a new option to the react-internal/safe-string-coercion
lint rule that controls whether `String(value)` should be disallowed.
ESLint is now configured set up to disallow `String(value)` in
perf-sensitive production code files, and to allow it elsewhere.
Although this option is enabled for prod code, error-handling
code should use `String()` for safety when building error messages
and call stacks. There were 5 lines where `String()` was used for prod
error handling. Tthis commit disables the lint rule for these lines.
0 commit comments