chore: 更新 i18n 生成文件的 ESLint 注释

更新 typesafe-i18n 配置和生成的文件中的
ESLint 禁用注释,添加说明文字以标识这些文件
是由 typesafe-i18n 自动生成的。这样可以提高代码
可维护性,让开发者清楚地了解这些文件的来源
和性质。
This commit is contained in:
RavenHogwarts 2026-05-13 15:04:44 +08:00 committed by RavenHogWarts
parent f2357f584c
commit 33c6a75fd5
6 changed files with 6 additions and 6 deletions

View file

@ -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"
}

View file

@ -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'

View file

@ -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

View file

@ -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'

View file

@ -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'

View file

@ -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'