Skip to content

Commit

Permalink
prettier --write
Browse files Browse the repository at this point in the history
  • Loading branch information
SanichKotikov committed Aug 14, 2023
1 parent 0ec811a commit 9598463
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
custom: [ 'https://money.yandex.ru/to/410013821917728/', 'https://www.paypal.me/cdrpro/' ]
custom: ['https://money.yandex.ru/to/410013821917728/', 'https://www.paypal.me/cdrpro/']
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "build & test"
name: 'build & test'

on:
push:
Expand Down
7 changes: 4 additions & 3 deletions src/components/DateTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ export function DateTime(props: Readonly<DateTimeProps>) {

return (
<span class={local.class}>
{i18n.formatDateTime(local.date, !isEmpty(others)
? others
: i18n.presets.dateTime?.[local.preset || 'default'])}
{i18n.formatDateTime(
local.date,
!isEmpty(others) ? others : i18n.presets.dateTime?.[local.preset || 'default'],
)}
</span>
);
}
6 changes: 1 addition & 5 deletions src/components/I18nProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ interface Props {
}

export function I18nProvider(props: Readonly<Props>) {
return (
<I18nContext.Provider value={props.i18n}>
{props.children}
</I18nContext.Provider>
);
return <I18nContext.Provider value={props.i18n}>{props.children}</I18nContext.Provider>;
}
7 changes: 4 additions & 3 deletions src/components/Numeric.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ export function Numeric(props: Readonly<NumericProps>) {

return (
<span class={local.class}>
{i18n.formatNumber(local.value, !isEmpty(options)
? options
: i18n.presets.number?.[local.preset || 'default'])}
{i18n.formatNumber(
local.value,
!isEmpty(options) ? options : i18n.presets.number?.[local.preset || 'default'],
)}
</span>
);
}
2 changes: 1 addition & 1 deletion src/components/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { splitProps } from 'solid-js';
import type { I18nMessage, I18nValues } from 'i18n-mini/lib/types';
import { useI18n } from '../context';

export type TextProps = I18nMessage & I18nValues & { class?: string; };
export type TextProps = I18nMessage & I18nValues & { class?: string };

export function Text(props: Readonly<TextProps>) {
const i18n = useI18n();
Expand Down
8 changes: 2 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
"jsxImportSource": "solid-js",
"jsx": "preserve"
},
"include": [
"src"
],
"exclude": [
"node_modules"
]
"include": ["src"],
"exclude": ["node_modules"]
}

0 comments on commit 9598463

Please sign in to comment.