Skip to content

Commit

Permalink
chore: update eslint-config/eslint-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jan 23, 2024
1 parent dc61159 commit b9caf52
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 119 deletions.
2 changes: 1 addition & 1 deletion frontend/app/src/components/defi/loan/LoanRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ withDefaults(defineProps<{ title?: string; medium?: boolean }>(), {
<div
class="flex justify-between py-1"
:class="{
'font-weight-medium': medium,
'font-medium': medium,
}"
>
<div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/src/components/helper/RowAppend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const rightColspan = useToNumber(rightPatchColspan);
/>
<td
:colspan="labelColspan"
:class="{ 'flex align-center': isMobile }"
:class="{ 'flex items-center': isMobile }"
>
<slot name="label">
{{ label }}
Expand All @@ -62,7 +62,7 @@ const rightColspan = useToNumber(rightPatchColspan);
<td
v-if="slots.default"
class="text-end"
:class="{ 'flex align-center': isMobile }"
:class="{ 'flex items-center': isMobile }"
>
<slot />
</td>
Expand Down
9 changes: 4 additions & 5 deletions frontend/app/src/store/defi/overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { DefiProtocol, isDefiProtocol } from '@/types/modules';
import type { ComputedRef } from 'vue';
import type {
DefiProtocolSummary,
TokenInfo,
} from '@/types/defi/overview';
import type { Writeable } from '@/types';

export const useDefiOverviewStore = defineStore('defi/store', () => {
const { getStatus } = useStatusUpdater(Section.DEFI_OVERVIEW);
Expand Down Expand Up @@ -114,9 +112,10 @@ export const useDefiOverviewStore = defineStore('defi/store', () => {
else if (
summary[protocol].tokenInfo?.tokenName !== entry.baseBalance.tokenName
) {
const tokenInfo: Writeable<TokenInfo> = summary[protocol].tokenInfo!;
tokenInfo.tokenName = `${t('defi_overview.multiple_assets')}`;
tokenInfo.tokenSymbol = '';
summary[protocol].tokenInfo = {
tokenName: `${t('defi_overview.multiple_assets')}`,
tokenSymbol: '',
};
}

const { balance } = entry.baseBalance;
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
},
"devDependencies": {
"@intlify/eslint-plugin-vue-i18n": "2.0.0",
"@rotki/eslint-config": "2.2.0",
"@rotki/eslint-plugin": "0.0.3",
"@rotki/eslint-config": "2.4.1",
"@rotki/eslint-plugin": "0.2.0",
"argparse": "2.0.1",
"dotenv": "14.3.2",
"eslint": "8.56.0",
Expand Down
Loading

0 comments on commit b9caf52

Please sign in to comment.