From 95984632099c3b9680778eb286ad5cdca8c207f9 Mon Sep 17 00:00:00 2001 From: Sanich Date: Mon, 14 Aug 2023 21:29:32 +0300 Subject: [PATCH] prettier --write --- .github/FUNDING.yml | 2 +- .github/workflows/main.yml | 2 +- src/components/DateTime.tsx | 7 ++++--- src/components/I18nProvider.tsx | 6 +----- src/components/Numeric.tsx | 7 ++++--- src/components/Text.tsx | 2 +- tsconfig.json | 8 ++------ 7 files changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 420389d..fc26a27 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -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/'] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 38cc1d6..c5400d6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: "build & test" +name: 'build & test' on: push: diff --git a/src/components/DateTime.tsx b/src/components/DateTime.tsx index 4c4a129..60bf7f6 100644 --- a/src/components/DateTime.tsx +++ b/src/components/DateTime.tsx @@ -15,9 +15,10 @@ export function DateTime(props: Readonly) { return ( - {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'], + )} ); } diff --git a/src/components/I18nProvider.tsx b/src/components/I18nProvider.tsx index 7c0b6af..16fefc7 100644 --- a/src/components/I18nProvider.tsx +++ b/src/components/I18nProvider.tsx @@ -9,9 +9,5 @@ interface Props { } export function I18nProvider(props: Readonly) { - return ( - - {props.children} - - ); + return {props.children}; } diff --git a/src/components/Numeric.tsx b/src/components/Numeric.tsx index 0e71c07..b2f6665 100644 --- a/src/components/Numeric.tsx +++ b/src/components/Numeric.tsx @@ -18,9 +18,10 @@ export function Numeric(props: Readonly) { return ( - {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'], + )} ); } diff --git a/src/components/Text.tsx b/src/components/Text.tsx index 97ffb95..a26be73 100644 --- a/src/components/Text.tsx +++ b/src/components/Text.tsx @@ -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) { const i18n = useI18n(); diff --git a/tsconfig.json b/tsconfig.json index 214fd55..92ea0a6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,10 +26,6 @@ "jsxImportSource": "solid-js", "jsx": "preserve" }, - "include": [ - "src" - ], - "exclude": [ - "node_modules" - ] + "include": ["src"], + "exclude": ["node_modules"] }