chore: format all frontend files (#430)

This commit is contained in:
tecvan
2025-07-31 23:15:48 +08:00
committed by GitHub
parent 8b078ff013
commit 6995cec404
8787 changed files with 11975 additions and 10924 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable max-params */
/* eslint-disable @typescript-eslint/no-this-alias */
/* eslint-disable @typescript-eslint/no-explicit-any */

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable max-params */
/* eslint-disable no-empty */
/* eslint-disable @coze-arch/no-empty-catch */

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { type IIntlInitOptions, IntlModuleType, IntlModule } from './types';
import Intl, { IntlInstance } from './i18n-impl';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @stylistic/ts/comma-dangle */
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable prettier/prettier */
@@ -46,17 +46,26 @@ export enum IntlModuleType {
languageDetector = 'languageDetector',
postProcessor = 'postProcessor',
i18nFormat = 'i18nFormat',
'3rdParty' = '3rdParty'
'3rdParty' = '3rdParty',
}
export interface IntlModule<T extends keyof typeof IntlModuleType = keyof typeof IntlModuleType> {
type: T
name?: string
init?: (i18n: any) => void | Promise<any>
export interface IntlModule<
T extends keyof typeof IntlModuleType = keyof typeof IntlModuleType,
> {
type: T;
name?: string;
init?: (i18n: any) => void | Promise<any>;
}
export type TFunctionKeys = string | TemplateStringsArray;
export type TFunctionResult = string | object | Array<string | object> | undefined | null;
export type TFunctionResult =
| string
| object
| Array<string | object>
| undefined
| null;
export interface StringMap { [key: string]: any }
export interface StringMap {
[key: string]: any;
}