CI: add TS indentation check via esLint (#24810)

This commit is contained in:
Yongtao Huang 2025-09-01 15:31:59 +08:00 • committed by GitHub
commit 208ce4e774
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
118 changed files with 457 additions and 489 deletions

View file

@ -132,7 +132,7 @@ export class SlashCommandRegistry {
try {
return await handler.search(args, locale)
}
catch (error) {
catch (error) {
console.warn(`Command search failed for ${commandName}:`, error)
return []
}
@ -144,7 +144,7 @@ export class SlashCommandRegistry {
try {
return await handler.search(args, locale)
}
catch (error) {
catch (error) {
console.warn(`Command search failed for ${handler.name}:`, error)
return []
}

View file

@ -205,7 +205,7 @@ export const searchAnything = async (
const results = await action.search(query, query, locale)
return { success: true, data: results, actionType: action.key }
}
catch (error) {
catch (error) {
console.warn(`Search failed for ${action.key}:`, error)
return { success: false, data: [], actionType: action.key, error }
}
@ -220,7 +220,7 @@ export const searchAnything = async (
if (result.status === 'fulfilled' && result.value.success) {
allResults.push(...result.value.data)
}
else {
else {
const actionKey = globalSearchActions[index]?.key || 'unknown'
failedActions.push(actionKey)
}