style: eslint-plugin-import

This commit is contained in:
Fu Diwei
2025-01-01 20:40:59 +08:00
parent e2d29b8fa2
commit 78d9d5159a
76 changed files with 1996 additions and 164 deletions

View File

@@ -1,5 +1,6 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import resources, { LOCALE_ZH_NAME, LOCALE_EN_NAME } from "./locales";

View File

@@ -1,12 +1,12 @@
import nlsCommon from "./nls.common.json";
import nlsLogin from "./nls.login.json";
import nlsAccess from "./nls.access.json";
import nlsCertificate from "./nls.certificate.json";
import nlsCommon from "./nls.common.json";
import nlsDashboard from "./nls.dashboard.json";
import nlsLogin from "./nls.login.json";
import nlsSettings from "./nls.settings.json";
import nlsAccess from "./nls.access.json";
import nlsWorkflow from "./nls.workflow.json";
import nlsWorkflowNodes from "./nls.workflow.nodes.json";
import nlsWorkflowRuns from "./nls.workflow.runs.json";
import nlsCertificate from "./nls.certificate.json";
export default Object.freeze({
...nlsCommon,

View File

@@ -1,7 +1,7 @@
import { Resource } from "i18next";
import zh from "./zh";
import en from "./en";
import zh from "./zh";
export const LOCALE_ZH_NAME = "zh" as const;
export const LOCALE_EN_NAME = "en" as const;

View File

@@ -1,12 +1,12 @@
import nlsCommon from "./nls.common.json";
import nlsLogin from "./nls.login.json";
import nlsAccess from "./nls.access.json";
import nlsCertificate from "./nls.certificate.json";
import nlsCommon from "./nls.common.json";
import nlsDashboard from "./nls.dashboard.json";
import nlsLogin from "./nls.login.json";
import nlsSettings from "./nls.settings.json";
import nlsAccess from "./nls.access.json";
import nlsWorkflow from "./nls.workflow.json";
import nlsWorkflowNodes from "./nls.workflow.nodes.json";
import nlsWorkflowRuns from "./nls.workflow.runs.json";
import nlsCertificate from "./nls.certificate.json";
export default Object.freeze({
...nlsCommon,