Skip to content

Commit e6c423b

Browse files
committed
chore: prettier
1 parent 7e476f7 commit e6c423b

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

apps/docs/components/accordion.tsx

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 2 deletions
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
}

packages/commandkit/bin/esbuild-plugins/use-cache.mjs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const generate = _generate.default || _generate;
88

99
const IMPORT_PATH = 'commandkit';
1010
const DIRECTIVE = 'use cache';
11-
const CACHE_IDENTIFIER = 'unstable_super_duper_secret_internal_for_use_cache_directive_of_commandkit_cli_do_not_use_it_directly_or_you_will_be_fired_kthxbai';
11+
const CACHE_IDENTIFIER =
12+
'unstable_super_duper_secret_internal_for_use_cache_directive_of_commandkit_cli_do_not_use_it_directly_or_you_will_be_fired_kthxbai';
1213

1314
const generateRandomString = (length = 6) => {
1415
const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
@@ -115,11 +116,11 @@ export const cacheDirectivePlugin = () => {
115116
// Create a new body without the 'use cache' directive
116117
const newBody = t.isBlockStatement(path.node.body)
117118
? t.blockStatement(
118-
path.node.body.body,
119-
path.node.body.directives.filter(
120-
(d) => d.value.value !== DIRECTIVE,
121-
),
122-
)
119+
path.node.body.body,
120+
path.node.body.directives.filter(
121+
(d) => d.value.value !== DIRECTIVE,
122+
),
123+
)
123124
: path.node.body;
124125

125126
const wrapped = t.callExpression(

0 commit comments

Comments
 (0)