Skip to content

Commit

Permalink
chore(ci): remove jsx-short-circuit-conditionals (bigcommerce#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaJose authored Jun 24, 2022
1 parent d2b7f0e commit ea91ca2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = {
{
files: ['**/*.ts', '**/*.tsx', '**/*.js'],
rules: {
'@bigcommerce/jsx-short-circuit-conditionals': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
Expand Down
2 changes: 1 addition & 1 deletion packages/big-design/src/components/List/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const StyleableList = typedMemo(
return (
<>
{group.separated && <ListGroupSeparator />}
{group.label && <ListGroupHeader>{group.label}</ListGroupHeader>}
{Boolean(group.label) && <ListGroupHeader>{group.label}</ListGroupHeader>}
{isItemGroup(group) && renderItems(group.items)}
{isOptionGroup(group) && renderItems(group.options)}
</>
Expand Down
2 changes: 1 addition & 1 deletion packages/big-design/src/components/Panel/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const RawPanel: React.FC<PanelProps & PrivateProps> = memo(({ forwardedRe

return (
<Flex flexDirection="row">
{header && <StyledH2 id={headerId}>{header}</StyledH2>}
{Boolean(header) && <StyledH2 id={headerId}>{header}</StyledH2>}
{action && <Button {...action}>{action.text}</Button>}
</Flex>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/components/ColorCards/ColorCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ColorCard: React.FC<ColorCardProps> = ({ colorCard }) => {
{description && (
<Small color={colorCard.textColor} margin="small">
{description.text}{' '}
{description.href && (
{Boolean(description.href) && (
<Link href={description.href} target="_blank">
<Small color="inherit">Read more</Small>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const App = ({ Component, pageProps }) => {
}
`}
</style>
{isProd && GTM_ID && (
{Boolean(isProd && GTM_ID) && (
<>
<Script
src={`https://www.googletagmanager.com/gtm.js?id=${GTM_ID}`}
Expand Down

0 comments on commit ea91ca2

Please sign in to comment.