Update code style to prettier3 rules

This commit is contained in:
Matthias 2023-07-11 22:02:02 +02:00
parent 7e89f66512
commit 86989fac6b
3 changed files with 11 additions and 10 deletions

View File

@ -29,7 +29,10 @@
small small
hover hover
stacked="sm" stacked="sm"
:items="(backtestResult.exit_reason_summary || backtestResult.sell_reason_summary) as unknown as TableItem[]" :items="
(backtestResult.exit_reason_summary ||
backtestResult.sell_reason_summary) as unknown as TableItem[]
"
:fields="perExitReason" :fields="perExitReason"
> >
</b-table> </b-table>
@ -49,9 +52,8 @@
header="Periodic breakdown" header="Periodic breakdown"
class="row mt-2 w-100" class="row mt-2 w-100"
> >
<BacktestResultPeriodBreakdown <BacktestResultPeriodBreakdown :periodic-breakdown="backtestResult.periodic_breakdown">
:periodic-breakdown="backtestResult.periodic_breakdown" </BacktestResultPeriodBreakdown>
></BacktestResultPeriodBreakdown>
</b-card> </b-card>
<b-card header="Single trades" class="row mt-2 w-100"> <b-card header="Single trades" class="row mt-2 w-100">

View File

@ -50,9 +50,8 @@ const exchangeList = computed(() => {
}); });
const tradeModesTyped = computed(() => { const tradeModesTyped = computed(() => {
const val = botStore.activeBot.exchangeList.find( const val = botStore.activeBot.exchangeList.find((ex) => ex.name === exchangeModel.value.exchange)
(ex) => ex.name === exchangeModel.value.exchange, ?.trade_modes;
)?.trade_modes;
return val ?? []; return val ?? [];
}); });

View File

@ -16,9 +16,9 @@
:allow-edit="true" :allow-edit="true"
class="d-flex flex-grow-1" class="d-flex flex-grow-1"
@delete="pairlistStore.deleteConfig" @delete="pairlistStore.deleteConfig"
@duplicate="(oldName:string,newName:string) => pairlistStore.duplicateConfig(newName)" @duplicate="(oldName: string, newName: string) => pairlistStore.duplicateConfig(newName)"
@new="(name:string) => pairlistStore.newConfig(name)" @new="(name: string) => pairlistStore.newConfig(name)"
@rename="(oldName: string, newName:string) => pairlistStore.saveConfig(newName)" @rename="(oldName: string, newName: string) => pairlistStore.saveConfig(newName)"
> >
<b-form-select <b-form-select
v-model="pairlistStore.configName" v-model="pairlistStore.configName"