Skip to content

Commit b45ec83

Browse files
committed
lint fix
1 parent 910414d commit b45ec83

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ node_modules
77
.docusaurus
88
.astro
99
dist
10+
build
1011
.commandkit
1112

1213
.DS_Store

apps/docs/components/accordion.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const Accordions = forwardRef<
2222
| Omit<AccordionMultipleProps, 'value' | 'onValueChange'>
2323
>(({ type = 'single', className, defaultValue, ...props }, ref) => {
2424
const [value, setValue] = useState<string | string[]>(
25-
type === 'single' ? (defaultValue ?? '') : (defaultValue ?? []),
25+
type === 'single' ? defaultValue ?? '' : defaultValue ?? [],
2626
);
2727

2828
useEffect(() => {

apps/docs/components/layout/language-toggle.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ export function LanguageToggleText(
5656
props: HTMLAttributes<HTMLSpanElement>,
5757
): React.ReactElement {
5858
const context = useI18n();
59-
const text = context.locales?.find(
60-
(item) => item.locale === context.locale,
61-
)?.name;
59+
const text = context.locales?.find((item) => item.locale === context.locale)
60+
?.name;
6261

6362
return <span {...props}>{text}</span>;
6463
}

packages/commandkit/src/cache/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export function unstable_cacheTag(
4040
typeof options === 'string'
4141
? { name: options }
4242
: typeof options === 'number'
43-
? { name: randomUUID(), ttl: options }
44-
: options;
43+
? { name: randomUUID(), ttl: options }
44+
: options;
4545

4646
Reflect.set(fn, '__cache_params', opt);
4747
}

0 commit comments

Comments
 (0)