From 33c6a75fd5b923b770415b2c4efb08fae054a094 Mon Sep 17 00:00:00 2001 From: RavenHogwarts Date: Wed, 13 May 2026 15:04:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20i18n=20=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=96=87=E4=BB=B6=E7=9A=84=20ESLint=20=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 typesafe-i18n 配置和生成的文件中的 ESLint 禁用注释,添加说明文字以标识这些文件 是由 typesafe-i18n 自动生成的。这样可以提高代码 可维护性,让开发者清楚地了解这些文件的来源 和性质。 --- .typesafe-i18n.json | 2 +- src/i18n/i18n-react.tsx | 2 +- src/i18n/i18n-types.ts | 2 +- src/i18n/i18n-util.async.ts | 2 +- src/i18n/i18n-util.sync.ts | 2 +- src/i18n/i18n-util.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.typesafe-i18n.json b/.typesafe-i18n.json index dda9f6c..81976dc 100644 --- a/.typesafe-i18n.json +++ b/.typesafe-i18n.json @@ -1,6 +1,6 @@ { "adapter": "react", "baseLocale": "zh", - "banner": "/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types */", + "banner": "/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types -- auto-generated by typesafe-i18n */", "$schema": "https://unpkg.com/typesafe-i18n@5.27.1/schema/typesafe-i18n.json" } diff --git a/src/i18n/i18n-react.tsx b/src/i18n/i18n-react.tsx index 0713144..332bc90 100644 --- a/src/i18n/i18n-react.tsx +++ b/src/i18n/i18n-react.tsx @@ -1,5 +1,5 @@ // This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten. -/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types */ +/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types -- auto-generated by typesafe-i18n */ import { useContext } from 'react' import { initI18nReact } from 'typesafe-i18n/react' diff --git a/src/i18n/i18n-types.ts b/src/i18n/i18n-types.ts index 35dc0a2..224f455 100644 --- a/src/i18n/i18n-types.ts +++ b/src/i18n/i18n-types.ts @@ -1,5 +1,5 @@ // This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten. -/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types */ +/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types -- auto-generated by typesafe-i18n */ import type { BaseTranslation as BaseTranslationType, LocalizedString, RequiredParams } from 'typesafe-i18n' export type BaseTranslation = BaseTranslationType diff --git a/src/i18n/i18n-util.async.ts b/src/i18n/i18n-util.async.ts index 762a0a2..b605e9a 100644 --- a/src/i18n/i18n-util.async.ts +++ b/src/i18n/i18n-util.async.ts @@ -1,5 +1,5 @@ // This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten. -/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types */ +/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types -- auto-generated by typesafe-i18n */ import { initFormatters } from './formatters' import type { Locales, Translations } from './i18n-types' diff --git a/src/i18n/i18n-util.sync.ts b/src/i18n/i18n-util.sync.ts index 024c8de..7624923 100644 --- a/src/i18n/i18n-util.sync.ts +++ b/src/i18n/i18n-util.sync.ts @@ -1,5 +1,5 @@ // This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten. -/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types */ +/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types -- auto-generated by typesafe-i18n */ import { initFormatters } from './formatters' import type { Locales, Translations } from './i18n-types' diff --git a/src/i18n/i18n-util.ts b/src/i18n/i18n-util.ts index 7bd9006..16e1605 100644 --- a/src/i18n/i18n-util.ts +++ b/src/i18n/i18n-util.ts @@ -1,5 +1,5 @@ // This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten. -/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types */ +/* eslint-disable no-irregular-whitespace, @typescript-eslint/ban-types -- auto-generated by typesafe-i18n */ import { i18n as initI18n, i18nObject as initI18nObject, i18nString as initI18nString } from 'typesafe-i18n' import type { LocaleDetector } from 'typesafe-i18n/detectors'