mirror of
https://github.com/raven-pensieve/obsidian-ace-code-editor.git
synced 2026-07-22 05:48:56 +00:00
chore: 更新 i18n 生成文件的 ESLint 注释
更新 typesafe-i18n 配置和生成的文件中的 ESLint 禁用注释,添加说明文字以标识这些文件 是由 typesafe-i18n 自动生成的。这样可以提高代码 可维护性,让开发者清楚地了解这些文件的来源 和性质。
This commit is contained in:
parent
f2357f584c
commit
33c6a75fd5
6 changed files with 6 additions and 6 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue