From fdf709917d88462ef89bf543b08ed4bc467e4d85 Mon Sep 17 00:00:00 2001 From: adamviktora Date: Wed, 16 Oct 2024 15:42:28 +0200 Subject: [PATCH] fix lint --- .eslintrc.json | 2 +- .../IndentSection/IndentSectionBasic.tsx | 20 ++++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 7181b4e..a6dcec8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -36,7 +36,7 @@ "@typescript-eslint/adjacent-overload-signatures": "error", "@typescript-eslint/array-type": "error", "@typescript-eslint/consistent-type-assertions": "error", - "@typescript-eslint/consistent-type-definitions": "error", + "@typescript-eslint/consistent-type-definitions": ["error", "type"], "@typescript-eslint/no-misused-new": "error", "@typescript-eslint/no-namespace": "error", "@typescript-eslint/no-require-imports": "off", diff --git a/packages/module/patternfly-docs/content/examples/IndentSection/IndentSectionBasic.tsx b/packages/module/patternfly-docs/content/examples/IndentSection/IndentSectionBasic.tsx index 88efa81..e825752 100644 --- a/packages/module/patternfly-docs/content/examples/IndentSection/IndentSectionBasic.tsx +++ b/packages/module/patternfly-docs/content/examples/IndentSection/IndentSectionBasic.tsx @@ -2,15 +2,11 @@ import React from 'react'; import { Stack, StackItem } from '@patternfly/react-core'; import { IndentSection } from '@patternfly/ai-infra-ui-components'; -export const IndentSectionBasic: React.FunctionComponent = () => { - return ( - - This text is not indented - - - This text is wrapped in an IndentSection and thus it is indented - - - - ); -}; +export const IndentSectionBasic: React.FunctionComponent = () => ( + + This text is not indented + + This text is wrapped in an IndentSection and thus it is indented + + +);