Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit fc5ac01

Browse files
authored
remove rule warning about React props spreading (#63433)
We do this many places in the code, so all this warning does is create lots of ESLint warnings that obscure more important warnings. ## Test plan n/a
1 parent 896819f commit fc5ac01

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.eslintrc.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,6 @@ const config = {
257257
message:
258258
'Prefer using the <Tooltip> component with an <Input> directly, when possible. Please only use <InputTooltip> when the legacy styling it provides is needed. We will be working to fix style issues with <Input> (especially for checkboxes) in the future.',
259259
},
260-
{
261-
selector: 'JSXSpreadAttribute[argument.name=/^(props|rest)$/]',
262-
message:
263-
"Spreading props can be unsafe. Prefer destructuring the props object, or continue only if you're sure.",
264-
},
265260
{
266261
selector: 'ImportDeclaration[source.value="react-router"]',
267262
message:

0 commit comments

Comments
 (0)