bumped eslint

This commit is contained in:
Eugene Pankov
2022-12-05 12:16:27 +01:00
parent b0600b10cc
commit 98476df882
40 changed files with 750 additions and 381 deletions

View File

@@ -7,8 +7,8 @@ import { ConfigProxy, ConfigService, Profile, ProfileProvider, ProfileSettingsCo
const iconsData = require('../../../tabby-core/src/icons.json')
const iconsClassList = Object.keys(iconsData).map(
icon => iconsData[icon].map(
style => `fa${style[0]} fa-${icon}`
)
style => `fa${style[0]} fa-${icon}`,
),
).flat()
/** @hidden */
@@ -36,7 +36,7 @@ export class EditProfileModalComponent<P extends Profile> {
this.groupNames = [...new Set(
(config.store.profiles as Profile[])
.map(x => x.group)
.filter(x => !!x)
.filter(x => !!x),
)].sort() as string[]
}
@@ -46,8 +46,8 @@ export class EditProfileModalComponent<P extends Profile> {
map((q: string) =>
TAB_COLORS
.filter(x => !q || x.name.toLowerCase().startsWith(q.toLowerCase()))
.map(x => x.value)
)
.map(x => x.value),
),
)
colorsFormatter = value => {
@@ -76,13 +76,13 @@ export class EditProfileModalComponent<P extends Profile> {
text$.pipe(
debounceTime(200),
distinctUntilChanged(),
map(q => this.groupNames.filter(x => !q || x.toLowerCase().includes(q.toLowerCase())))
map(q => this.groupNames.filter(x => !q || x.toLowerCase().includes(q.toLowerCase()))),
)
iconSearch: OperatorFunction<string, string[]> = (text$: Observable<string>) =>
text$.pipe(
debounceTime(200),
map(term => iconsClassList.filter(v => v.toLowerCase().includes(term.toLowerCase())).slice(0, 10))
map(term => iconsClassList.filter(v => v.toLowerCase().includes(term.toLowerCase())).slice(0, 10)),
)
save () {

View File

@@ -140,7 +140,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
],
defaultId: 1,
cancelId: 1,
}
},
)).response === 0) {
this.profilesService.providerForProfile(profile)?.deleteProfile(
this.profilesService.getConfigProxyForProfile(profile))
@@ -205,7 +205,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
],
defaultId: 1,
cancelId: 1,
}
},
)).response === 0) {
if ((await this.platform.showMessageBox(
{
@@ -217,7 +217,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
],
defaultId: 0,
cancelId: 0,
}
},
)).response === 0) {
for (const profile of this.profiles.filter(x => x.group === group.name)) {
delete profile.group

View File

@@ -18,8 +18,8 @@ export class SettingsTabBodyComponent {
setImmediate(() => {
this.component = this.placeholder.createComponent(
this.componentFactoryResolver.resolveComponentFactory(
this.provider.getComponentType()
)
this.provider.getComponentType(),
),
)
})
}

View File

@@ -51,7 +51,7 @@ export class VaultSettingsTabComponent extends BaseComponent {
],
defaultId: 1,
cancelId: 1,
}
},
)).response === 0) {
await this.vault.setEnabled(false)
}