feat: update ESLint config with @typescript-eslint/consistent-type-imports (#4746)

* update: Add type

* fix: update import statement for NextApiRequest type

* fix: update imports to use type for LexicalEditor and EditorState

* Refactor imports to use 'import type' for type-only imports across multiple files

- Updated imports in various components and API files to use 'import type' for better clarity and to optimize TypeScript's type checking.
- Ensured consistent usage of type imports in files related to chat, dataset, workflow, and user management.
- Improved code readability and maintainability by distinguishing between value and type imports.

* refactor: remove old ESLint configuration and add new rules

- Deleted the old ESLint configuration file from the app project.
- Added a new ESLint configuration file with updated rules and settings.
- Changed imports to use type-only imports in various files for better clarity and performance.
- Updated TypeScript configuration to remove unnecessary options.
- Added an ESLint ignore file to exclude build and dependency directories from linting.

* fix: update imports to use 'import type' for type-only imports in schema files
This commit is contained in:
Theresa
2025-05-06 17:33:09 +08:00
committed by GitHub
parent 5361674a2c
commit 2d3117c5da
806 changed files with 2223 additions and 1881 deletions

View File

@@ -1,25 +1,25 @@
import 'i18next';
import account_team from '../i18n/zh-CN/account_team.json';
import account from '../i18n/zh-CN/account.json';
import account_thirdParty from '../i18n/zh-CN/account_thirdParty.json';
import account_promotion from '../i18n/zh-CN/account_promotion.json';
import account_inform from '../i18n/zh-CN/account_inform.json';
import account_setting from '../i18n/zh-CN/account_setting.json';
import account_apikey from '../i18n/zh-CN/account_apikey.json';
import account_bill from '../i18n/zh-CN/account_bill.json';
import account_usage from '../i18n/zh-CN/account_usage.json';
import account_info from '../i18n/zh-CN/account_info.json';
import common from '../i18n/zh-CN/common.json';
import dataset from '../i18n/zh-CN/dataset.json';
import app from '../i18n/zh-CN/app.json';
import file from '../i18n/zh-CN/file.json';
import publish from '../i18n/zh-CN/publish.json';
import workflow from '../i18n/zh-CN/workflow.json';
import user from '../i18n/zh-CN/user.json';
import chat from '../i18n/zh-CN/chat.json';
import login from '../i18n/zh-CN/login.json';
import account_model from '../i18n/zh-CN/account_model.json';
import dashboard_mcp from '../i18n/zh-CN/dashboard_mcp.json';
import type account_team from '../i18n/zh-CN/account_team.json';
import type account from '../i18n/zh-CN/account.json';
import type account_thirdParty from '../i18n/zh-CN/account_thirdParty.json';
import type account_promotion from '../i18n/zh-CN/account_promotion.json';
import type account_inform from '../i18n/zh-CN/account_inform.json';
import type account_setting from '../i18n/zh-CN/account_setting.json';
import type account_apikey from '../i18n/zh-CN/account_apikey.json';
import type account_bill from '../i18n/zh-CN/account_bill.json';
import type account_usage from '../i18n/zh-CN/account_usage.json';
import type account_info from '../i18n/zh-CN/account_info.json';
import type common from '../i18n/zh-CN/common.json';
import type dataset from '../i18n/zh-CN/dataset.json';
import type app from '../i18n/zh-CN/app.json';
import type file from '../i18n/zh-CN/file.json';
import type publish from '../i18n/zh-CN/publish.json';
import type workflow from '../i18n/zh-CN/workflow.json';
import type user from '../i18n/zh-CN/user.json';
import type chat from '../i18n/zh-CN/chat.json';
import type login from '../i18n/zh-CN/login.json';
import type account_model from '../i18n/zh-CN/account_model.json';
import type dashboard_mcp from '../i18n/zh-CN/dashboard_mcp.json';
export interface I18nNamespaces {
common: typeof common;