diff --git a/config/eslint-config-carbon/plugins/react.js b/config/eslint-config-carbon/plugins/react.js index 2f1a644d6bee..1276582e0ca1 100644 --- a/config/eslint-config-carbon/plugins/react.js +++ b/config/eslint-config-carbon/plugins/react.js @@ -89,6 +89,14 @@ module.exports = { 'react/forbid-dom-props': 0, }, }, + // style prop is fine to be used in internal unit testing + { + files: ['*.e2e.js'], + rules: { + 'react/forbid-component-props': 0, + 'react/forbid-dom-props': 0, + }, + }, // When writing fixtures, we tend to focus on the specific component and // don't require React in scope as we never end up executing the code. The diff --git a/packages/react/src/components/FocusScope/index.js b/packages/react/src/components/FocusScope/index.js index 038c431b7ab2..58abad96e84f 100644 --- a/packages/react/src/components/FocusScope/index.js +++ b/packages/react/src/components/FocusScope/index.js @@ -89,6 +89,7 @@ function FocusScopeBumper(props) { return ( ( // eslint-disable-next-line react/prop-types export const StoryFrame = ({ children }) => ( + // eslint-disable-next-line react/forbid-dom-props
{children} diff --git a/packages/react/src/components/Stack/Stack.js b/packages/react/src/components/Stack/Stack.js index 23c9b0fca0ef..9447b8c371b5 100644 --- a/packages/react/src/components/Stack/Stack.js +++ b/packages/react/src/components/Stack/Stack.js @@ -59,6 +59,7 @@ const Stack = React.forwardRef(function Stack(props, ref) { } return ( + // eslint-disable-next-line react/forbid-component-props {children} diff --git a/www/src/pages/insights/[owner]/[repo].js b/www/src/pages/insights/[owner]/[repo].js index b5768e96cdc3..c4bc163552dc 100644 --- a/www/src/pages/insights/[owner]/[repo].js +++ b/www/src/pages/insights/[owner]/[repo].js @@ -154,6 +154,7 @@ export default function InsightPage(props) { {formatChange(sprint.issues.states.open.change)} + {/* eslint-disable-next-line react/forbid-component-props */} @@ -165,6 +166,7 @@ export default function InsightPage(props) { {closedLabel} + {/* eslint-disable-next-line react/forbid-component-props */}