Skip to content

Commit

Permalink
chore: remove biome lint rule noUnusedTemplateLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkaxis committed Oct 3, 2023
1 parent 7f9b7c0 commit 2993f28
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"useLiteralKeys": "off",
"noUselessSwitchCase": "off"
},
"style": {
"noUnusedTemplateLiteral": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Input/TimeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface TimeContainerProps {

const TimeContainer = styled.div<TimeContainerProps>`
display: grid;
grid-template-columns: ${({ hour12 }) => (hour12 ? `72px 64px` : `144px`)};
grid-template-columns: ${({ hour12 }) => (hour12 ? '72px 64px' : '144px')};
grid-column-gap: ${spacing.medium};
align-items: end;
`
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Toast/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export type ToastAction =
| ToastRemoveAllAction

export const NI = () => {
throw new Error(`Not implemented: no ToastContext set`)
throw new Error('Not implemented: no ToastContext set')
}
export interface ToastContextType extends ToastCallbacks {
readonly dispatch: Dispatch<ToastAction>
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/mdx/Props.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const PropsList: FC<PropsProps> = ({ of, props }) => {
(optional
{prop.defaultValue !== null ? (
<>
{`, default: `}
{', default: '}
<PropTitleOptionalDefault>
{JSON.stringify(prop.defaultValue.value)}
</PropTitleOptionalDefault>
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/mdx/themeCreator/ColorPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ColorBox = styled.div<ColorBoxProps>`
: '0px'};
`
const SelectedColorBox = styled.div<ColorBoxProps>`
${({ selected }) => (selected ? `border:2px solid;` : 'none')};
${({ selected }) => (selected ? 'border:2px solid;' : 'none')};
`

const ColorSegment = styled.div`
Expand Down
4 changes: 2 additions & 2 deletions packages/icons/scripts/icon-code-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ async function parseSVG(svg: string, componentName: string): Promise<string> {
const header = `${comment !== undefined ? `/**${comment}*/\n` : ''}`

return tpl`${header}
import React from 'react'
${variables.interfaces};
export const ${variables.componentName} = React.memo(
(${`(props: React.SVGProps<SVGSVGElement>)`}) =>
(${'(props: React.SVGProps<SVGSVGElement>)'}) =>
${variables.jsx}
)
`
Expand Down

0 comments on commit 2993f28

Please sign in to comment.