mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-21 01:17:16 +08:00
lint
This commit is contained in:
parent
1b0ce6d684
commit
75eedafbc9
@ -68,8 +68,9 @@ export class PluginManagerService {
|
||||
map(plugins => plugins.filter(x => x.packageName.startsWith(namePrefix))),
|
||||
map(plugins => plugins.filter(x => !PLUGIN_BLACKLIST.includes(x.packageName))),
|
||||
map(plugins => {
|
||||
const mapping: Record<string, PluginInfo[]|undefined> = {}
|
||||
const mapping: Record<string, PluginInfo[]> = {}
|
||||
for (const p of plugins) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
mapping[p.name] ??= []
|
||||
mapping[p.name].push(p)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user