CI: add TS indentation check via esLint (#24810)
This commit is contained in:
parent
414ee51975
commit
208ce4e774
118 changed files with 457 additions and 489 deletions
|
|
@ -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 []
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ const GotoAnything: FC<Props> = ({
|
|||
acc[result.type].push(result)
|
||||
return acc
|
||||
}, {} as { [key: string]: SearchResult[] }),
|
||||
[searchResults])
|
||||
[searchResults])
|
||||
|
||||
const emptyResult = useMemo(() => {
|
||||
if (searchResults.length || !searchQuery.trim() || isLoading || isCommandsMode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue