mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-16 23:10:11 +08:00
perf: type
This commit is contained in:
@@ -14,7 +14,6 @@ export default tsEslint.config(
|
||||
rules: {
|
||||
quotes: ['error', 'single', { allowTemplateLiterals: false }],
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'unused-imports/no-unused-imports': 'error',
|
||||
'unused-imports/no-unused-vars': 'error',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { batchImportApps } from '@gkd-kit/tools';
|
||||
import { RawApp } from '@gkd-kit/api';
|
||||
|
||||
const apps = await batchImportApps(`${import.meta.dirname}/apps`);
|
||||
|
||||
@@ -147,7 +148,7 @@ export const blackListAppIDs: string[] = [
|
||||
];
|
||||
|
||||
// 如果某应用的规则中已有全局规则中的某一类的规则, 则在此应用禁用对应全局规则
|
||||
function filterAppsByGroup(apps: any[], groupNamePrefix: string): string[] {
|
||||
function filterAppsByGroup(apps: RawApp[], groupNamePrefix: string): string[] {
|
||||
return apps
|
||||
.filter(
|
||||
(a) =>
|
||||
|
||||
Reference in New Issue
Block a user