Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 2993f28

Browse files
committed
chore: remove biome lint rule noUnusedTemplateLiteral
1 parent 7f9b7c0 commit 2993f28

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

biome.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
"useLiteralKeys": "off",
2020
"noUselessSwitchCase": "off"
2121
},
22-
"style": {
23-
"noUnusedTemplateLiteral": "off"
24-
},
2522
"a11y": {
2623
"noSvgWithoutTitle": "off"
2724
}

packages/core/src/Input/TimeInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface TimeContainerProps {
3838

3939
const TimeContainer = styled.div<TimeContainerProps>`
4040
display: grid;
41-
grid-template-columns: ${({ hour12 }) => (hour12 ? `72px 64px` : `144px`)};
41+
grid-template-columns: ${({ hour12 }) => (hour12 ? '72px 64px' : '144px')};
4242
grid-column-gap: ${spacing.medium};
4343
align-items: end;
4444
`

packages/core/src/Toast/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export type ToastAction =
8787
| ToastRemoveAllAction
8888

8989
export const NI = () => {
90-
throw new Error(`Not implemented: no ToastContext set`)
90+
throw new Error('Not implemented: no ToastContext set')
9191
}
9292
export interface ToastContextType extends ToastCallbacks {
9393
readonly dispatch: Dispatch<ToastAction>

packages/docs/src/mdx/Props.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const PropsList: FC<PropsProps> = ({ of, props }) => {
7474
(optional
7575
{prop.defaultValue !== null ? (
7676
<>
77-
{`, default: `}
77+
{', default: '}
7878
<PropTitleOptionalDefault>
7979
{JSON.stringify(prop.defaultValue.value)}
8080
</PropTitleOptionalDefault>

packages/docs/src/mdx/themeCreator/ColorPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ColorBox = styled.div<ColorBoxProps>`
3131
: '0px'};
3232
`
3333
const SelectedColorBox = styled.div<ColorBoxProps>`
34-
${({ selected }) => (selected ? `border:2px solid;` : 'none')};
34+
${({ selected }) => (selected ? 'border:2px solid;' : 'none')};
3535
`
3636

3737
const ColorSegment = styled.div`

packages/icons/scripts/icon-code-gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ async function parseSVG(svg: string, componentName: string): Promise<string> {
9090
const header = `${comment !== undefined ? `/**${comment}*/\n` : ''}`
9191

9292
return tpl`${header}
93-
93+
9494
import React from 'react'
9595
9696
${variables.interfaces};
9797
9898
export const ${variables.componentName} = React.memo(
99-
(${`(props: React.SVGProps<SVGSVGElement>)`}) =>
99+
(${'(props: React.SVGProps<SVGSVGElement>)'}) =>
100100
${variables.jsx}
101101
)
102102
`

0 commit comments

Comments
 (0)