Skip to content

Commit 910414d

Browse files
committed
chore: lint fix
1 parent 021a49c commit 910414d

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

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

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

6263
return <span {...props}>{text}</span>;
6364
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
"nanoid@<3.3.8": "3.3.8"
3535
}
3636
}
37-
}
37+
}

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)