mirror of
https://github.com/Eugeny/tabby
synced 2024-11-13 00:17:12 +00:00
lint
This commit is contained in:
parent
1b0ce6d684
commit
75eedafbc9
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue