mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-07 21:10:00 +00: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 => x.packageName.startsWith(namePrefix))),
|
||||||
map(plugins => plugins.filter(x => !PLUGIN_BLACKLIST.includes(x.packageName))),
|
map(plugins => plugins.filter(x => !PLUGIN_BLACKLIST.includes(x.packageName))),
|
||||||
map(plugins => {
|
map(plugins => {
|
||||||
const mapping: Record<string, PluginInfo[]|undefined> = {}
|
const mapping: Record<string, PluginInfo[]> = {}
|
||||||
for (const p of plugins) {
|
for (const p of plugins) {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
mapping[p.name] ??= []
|
mapping[p.name] ??= []
|
||||||
mapping[p.name].push(p)
|
mapping[p.name].push(p)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user