mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
[SIEM] Enable eslint react/no-children-prop (#53985)
This commit is contained in:
parent
91173525c3
commit
6e1328b9f0
2 changed files with 6 additions and 12 deletions
|
@ -723,15 +723,13 @@ module.exports = {
|
||||||
'no-unreachable': 'error',
|
'no-unreachable': 'error',
|
||||||
'no-unsafe-finally': 'error',
|
'no-unsafe-finally': 'error',
|
||||||
'no-useless-call': 'error',
|
'no-useless-call': 'error',
|
||||||
// This will be turned on after bug fixes are mostly complete
|
'no-useless-catch': 'error',
|
||||||
// 'no-useless-catch': 'warn',
|
|
||||||
'no-useless-concat': 'error',
|
'no-useless-concat': 'error',
|
||||||
'no-useless-computed-key': 'error',
|
'no-useless-computed-key': 'error',
|
||||||
// This will be turned on after bug fixes are mostly complete
|
// This will be turned on after bug fixes are mostly complete
|
||||||
// 'no-useless-escape': 'warn',
|
// 'no-useless-escape': 'warn',
|
||||||
'no-useless-rename': 'error',
|
'no-useless-rename': 'error',
|
||||||
// This will be turned on after bug fixes are mostly complete
|
'no-useless-return': 'error',
|
||||||
// 'no-useless-return': 'warn',
|
|
||||||
// This will be turned on after bug fixers are mostly complete
|
// This will be turned on after bug fixers are mostly complete
|
||||||
// 'no-void': 'warn',
|
// 'no-void': 'warn',
|
||||||
'one-var-declaration-per-line': 'error',
|
'one-var-declaration-per-line': 'error',
|
||||||
|
@ -745,8 +743,7 @@ module.exports = {
|
||||||
'react/button-has-type': 'error',
|
'react/button-has-type': 'error',
|
||||||
'react/forbid-dom-props': 'error',
|
'react/forbid-dom-props': 'error',
|
||||||
'react/no-access-state-in-setstate': 'error',
|
'react/no-access-state-in-setstate': 'error',
|
||||||
// This style will be turned on after most bugs are fixed
|
'react/no-children-prop': 'error',
|
||||||
// 'react/no-children-prop': 'warn',
|
|
||||||
'react/no-danger-with-children': 'error',
|
'react/no-danger-with-children': 'error',
|
||||||
'react/no-deprecated': 'error',
|
'react/no-deprecated': 'error',
|
||||||
'react/no-did-mount-set-state': 'error',
|
'react/no-did-mount-set-state': 'error',
|
||||||
|
|
|
@ -105,12 +105,9 @@ export const DefaultDraggable = React.memo<DefaultDraggableType>(
|
||||||
<Provider dataProvider={dataProvider} />
|
<Provider dataProvider={dataProvider} />
|
||||||
</DragEffects>
|
</DragEffects>
|
||||||
) : (
|
) : (
|
||||||
<Content
|
<Content field={field} tooltipContent={tooltipContent} value={value}>
|
||||||
children={children}
|
{children}
|
||||||
field={field}
|
</Content>
|
||||||
tooltipContent={tooltipContent}
|
|
||||||
value={value}
|
|
||||||
/>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue