Skip to content

Commit

Permalink
chore: remove biome lint rule noShadowRestrictedNames
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkaxis committed Oct 3, 2023
1 parent bb8059f commit 1fc1071
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"suspicious": {
"noEmptyInterface": "off",
"noExplicitAny": "off",
"noArrayIndexKey": "off",
"noShadowRestrictedNames": "off"
"noArrayIndexKey": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const getWidth = (width: TextInputWidth): string => {
}
}

const Error = styled.div<{
const ErrorContainer = styled.div<{
readonly compact: boolean
}>`
color: ${({ theme }) => theme.color.elementError()};
Expand Down Expand Up @@ -447,14 +447,14 @@ function Input<T extends string | NumberInputType>({
</ErrorIconContainer>
) : null}
{error !== undefined ? (
<Error compact={compact}>
<ErrorContainer compact={compact}>
<ErrorLineContainer>
<ErrorLine hasErrorMessage={error !== ''} />
</ErrorLineContainer>
{errorVariant === 'text' && error !== '' ? (
<ErrorMessageText errorVariant={errorVariant} error={error} />
) : null}
</Error>
</ErrorContainer>
) : (
<FocusLine />
)}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/TextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Typography } from '../Typography'

const TEXT_AREA_HEIGHT = '96px'

const Error = styled.div`
const ErrorContainer = styled.div`
color: ${({ theme }) => theme.color.elementError()};
line-height: 16px;
background-color: transparent;
Expand Down Expand Up @@ -265,7 +265,7 @@ export const TextArea: FC<TextAreaProps> = ({
ref={textareaRef}
/>
{error !== undefined ? (
<Error>
<ErrorContainer>
<ErrorLineContainter>
<ErrorLine hasErrorMessage={error !== ''} />
</ErrorLineContainter>
Expand All @@ -274,7 +274,7 @@ export const TextArea: FC<TextAreaProps> = ({
<Typography variant="explanatory-text">{error}</Typography>
</ErrorMessage>
) : null}
</Error>
</ErrorContainer>
) : (
<FocusLine />
)}
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/mdx/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const EditorContainer = styled.div`
overflow: hidden;
`

const Error = styled(LiveError)`
const ErrorContainer = styled(LiveError)`
background-color: ${({ theme }) => theme.color.elementError(0.3)};
font-size: 12px;
padding: ${practicalcore.spacing.large};
Expand Down Expand Up @@ -105,7 +105,7 @@ export const Code = ({
<Editor>
<LiveEditor theme={lightTheme} />
</Editor>
<Error />
<ErrorContainer />
</EditorContainer>
) : null}
<Preview />
Expand Down

0 comments on commit 1fc1071

Please sign in to comment.