mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-18 02:16:07 +00:00
chore: fix linter errors
This commit is contained in:
@@ -8,7 +8,6 @@ import { toast } from 'sonner';
|
|||||||
import { extractI18nObject } from '@/i18n/I18nProvider';
|
import { extractI18nObject } from '@/i18n/I18nProvider';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import PluginComponentList from '@/app/home/plugins/components/plugin-installed/PluginComponentList';
|
import PluginComponentList from '@/app/home/plugins/components/plugin-installed/PluginComponentList';
|
||||||
import { IFileConfig } from '@/app/infra/entities/form/dynamic';
|
|
||||||
|
|
||||||
export default function PluginForm({
|
export default function PluginForm({
|
||||||
pluginAuthor,
|
pluginAuthor,
|
||||||
@@ -39,6 +38,7 @@ export default function PluginForm({
|
|||||||
setPluginConfig(res);
|
setPluginConfig(res);
|
||||||
|
|
||||||
// 提取初始配置中的所有文件 key
|
// 提取初始配置中的所有文件 key
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const extractFileKeys = (obj: any): string[] => {
|
const extractFileKeys = (obj: any): string[] => {
|
||||||
const keys: string[] = [];
|
const keys: string[] = [];
|
||||||
if (obj && typeof obj === 'object') {
|
if (obj && typeof obj === 'object') {
|
||||||
@@ -74,6 +74,7 @@ export default function PluginForm({
|
|||||||
);
|
);
|
||||||
|
|
||||||
// 提取最终保存的配置中的所有文件 key
|
// 提取最终保存的配置中的所有文件 key
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const extractFileKeys = (obj: any): string[] => {
|
const extractFileKeys = (obj: any): string[] => {
|
||||||
const keys: string[] = [];
|
const keys: string[] = [];
|
||||||
if (obj && typeof obj === 'object') {
|
if (obj && typeof obj === 'object') {
|
||||||
|
|||||||
Reference in New Issue
Block a user