File tree Expand file tree Collapse file tree 19 files changed +6849
-2276
lines changed
Expand file tree Collapse file tree 19 files changed +6849
-2276
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- export type Color =
3- | ' gray'
4- | ' green'
5- | ' red'
6- | ' yellow'
2+ export type Color
3+ = | ' gray'
4+ | ' green'
5+ | ' red'
6+ | ' yellow'
77
88defineProps <{
99 color? : Color ,
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ type FormatAmountOptions = (
1919 sourceCurrency? : never ,
2020 value? : never ,
2121 }
22- |
23- {
22+ | {
2423 currencyItems? : never ,
2524 sourceCurrency? : ' clCurrency' | ' elCurrency' | CurrencyCode ,
2625 value: ` ${number } ` | string ,
Original file line number Diff line number Diff line change 22import { LazyBcRotate } from ' #components'
33import type { Rotation } from ' ~/components/BcRotate.vue'
44
5- export type Icon =
6- | ' alarm-snooze'
7- | ' arrow-down'
8- | ' arrow-left-right'
9- | ' arrow-up'
10- | ' arrow-upright-from-square'
11- | ' bars'
12- | ' bolt'
13- | ' chart-column'
14- | ' chart-line-up'
15- | ' check'
16- | ' chevron-down'
17- | ' chevron-left'
18- | ' chevron-right'
19- | ' circle-info'
20- | ' circle-plus'
21- | ' circle-user'
22- | ' clock'
23- | ' copy'
24- | ' cube'
25- | ' cubes'
26- | ' desktop'
27- | ' edit'
28- | ' eye'
29- | ' file-signature'
30- | ' fire'
31- | ' flag'
32- | ' gauge-simple-max'
33- | ' gear'
34- | ' gem'
35- | ' globe'
36- | ' hand-holding-hand'
37- | ' hashtag'
38- | ' magnifying-glass'
39- | ' minus'
40- | ' money-bill'
41- | ' monitor-wave-form'
42- | ' moon'
43- | ' network-wired'
44- | ' paper-plane'
45- | ' people-group'
46- | ' percent'
47- | ' plus'
48- | ' power-off'
49- | ' right-from-bracket'
50- | ' rocket'
51- | ' rotate'
52- | ' share'
53- | ' sigma'
54- | ' snooze'
55- | ' sun'
56- | ' sync'
57- | ' table'
58- | ' trash'
59- | ' user'
60- | ' user-slash'
61- | ' wallet'
62- | ' xmark'
63- | IconCrypto
64- | IconCustom
65- | IconFlag
5+ export type Icon
6+ = | ' alarm-snooze'
7+ | ' arrow-down'
8+ | ' arrow-left-right'
9+ | ' arrow-up'
10+ | ' arrow-upright-from-square'
11+ | ' bars'
12+ | ' bolt'
13+ | ' chart-column'
14+ | ' chart-line-up'
15+ | ' check'
16+ | ' chevron-down'
17+ | ' chevron-left'
18+ | ' chevron-right'
19+ | ' circle-info'
20+ | ' circle-plus'
21+ | ' circle-user'
22+ | ' clock'
23+ | ' copy'
24+ | ' cube'
25+ | ' cubes'
26+ | ' desktop'
27+ | ' edit'
28+ | ' eye'
29+ | ' file-signature'
30+ | ' fire'
31+ | ' flag'
32+ | ' gauge-simple-max'
33+ | ' gear'
34+ | ' gem'
35+ | ' globe'
36+ | ' hand-holding-hand'
37+ | ' hashtag'
38+ | ' magnifying-glass'
39+ | ' minus'
40+ | ' money-bill'
41+ | ' monitor-wave-form'
42+ | ' moon'
43+ | ' network-wired'
44+ | ' paper-plane'
45+ | ' people-group'
46+ | ' percent'
47+ | ' plus'
48+ | ' power-off'
49+ | ' right-from-bracket'
50+ | ' rocket'
51+ | ' rotate'
52+ | ' share'
53+ | ' sigma'
54+ | ' snooze'
55+ | ' sun'
56+ | ' sync'
57+ | ' table'
58+ | ' trash'
59+ | ' user'
60+ | ' user-slash'
61+ | ' wallet'
62+ | ' xmark'
63+ | IconCrypto
64+ | IconCustom
65+ | IconFlag
6666
67- type IconCrypto =
68- | ' crypto-eth'
69- | ' crypto-gno'
70- | ' crypto-xdai'
67+ type IconCrypto
68+ = | ' crypto-eth'
69+ | ' crypto-gno'
70+ | ' crypto-xdai'
7171
72- type IconCustom =
73- | ' attestaion-head'
74- | ' attestaion-source'
75- | ' attestaion-target'
76- | ' circle-power-off'
72+ type IconCustom
73+ = | ' attestaion-head'
74+ | ' attestaion-source'
75+ | ' attestaion-target'
76+ | ' circle-power-off'
7777
78- type IconFlag =
79- | ' flag-au'
80- | ' flag-ca'
81- | ' flag-cn'
82- | ' flag-eu'
83- | ' flag-gb'
84- | ' flag-jp'
85- | ' flag-us'
78+ type IconFlag
79+ = | ' flag-au'
80+ | ' flag-ca'
81+ | ' flag-cn'
82+ | ' flag-eu'
83+ | ' flag-gb'
84+ | ' flag-jp'
85+ | ' flag-us'
8686
8787const {
8888 rotation,
Original file line number Diff line number Diff line change 88 {
99 ariaLabel: string ,
1010 label? : never ,
11- } |
12- {
11+ }
12+ | {
1313 ariaLabel? : never ,
1414 label: string ,
1515 }
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ const summarySections = computed<SummaryRow[][]>(() => {
7070 }
7171
7272 const rewardCols: CombinedPropOrUndefined []
73- = [ (! props .tableVisibility .reward ? ' reward' : undefined ) ]
73+ = [ (! props .tableVisibility .reward ? ' reward' : undefined ) ]
7474
7575 let addCols: CombinedPropOrUndefined [] = props .tableVisibility
7676 .attestations
Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ function createDutyLabels(dutyObjects?: number[]) {
7676function createDutyLinksData(
7777 dutyObjects ? : number [],
7878): {
79- label: string ,
80- to? : string ,
81- }[] {
79+ label: string ,
80+ to? : string ,
81+ }[] {
8282 if (! dutyObjects ) {
8383 return []
8484 }
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import {
33 useCookie ,
44} from '#app/composables/cookie'
55
6- type CookieName =
7- | 'bc-account-dashboard-key'
8- | 'bc-age-format'
9- | 'bc-cookies-preference'
10- | 'bc-user-dashboards'
11- | 'bc-validator-dashboard-key'
6+ type CookieName
7+ = | 'bc-account-dashboard-key'
8+ | 'bc-age-format'
9+ | 'bc-cookies-preference'
10+ | 'bc-user-dashboards'
11+ | 'bc-validator-dashboard-key'
1212
1313// for now without the other `type overload` there is no way to use
1414// `readonly` feature of `useCookieNuxt` (we might adapt this if needed)
Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ export const useDashboardData = () => {
5050 query ?: TableQueryParams ,
5151 ) {
5252 const res
53- = await fetch < GetValidatorDashboardConsensusLayerDepositsResponse > (
54- 'DASHBOARD_CL_DEPOSITS' ,
55- undefined ,
56- { dashboardKey } ,
57- query ,
58- )
53+ = await fetch < GetValidatorDashboardConsensusLayerDepositsResponse > (
54+ 'DASHBOARD_CL_DEPOSITS' ,
55+ undefined ,
56+ { dashboardKey } ,
57+ query ,
58+ )
5959
6060 return res
6161 }
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ export const useTranslation = () => {
55 // https://vue-i18n.intlify.dev/guide/advanced/typescript.html#resource-keys-completion-supporting
66 return { ...useI18n < { message : MessageSchema } > ( { useScope : 'global' } ) }
77}
8- export type TranslationInput =
9- | TranslationKey
10- | TranslationWithMessageInterpolation
8+ export type TranslationInput
9+ = | TranslationKey
10+ | TranslationWithMessageInterpolation
1111
1212export type TranslationKey = GetObjectPaths < MessageSchema >
1313
@@ -21,8 +21,8 @@ export type TranslationKey = GetObjectPaths<MessageSchema>
2121 *
2222 * @see https://vue-i18n.intlify.dev/api/injection.html#component-injections
2323 */
24- type TranslationWithMessageInterpolation =
25- | {
24+ type TranslationWithMessageInterpolation
25+ = | {
2626 interpolation : number ,
2727 key : TranslationKey ,
2828 }
Original file line number Diff line number Diff line change 11import eslintPluginNewlineDestructuring from 'eslint-plugin-newline-destructuring'
22// @ts -check
33import perfectionist from 'eslint-plugin-perfectionist'
4+ import stylistic from '@stylistic/eslint-plugin'
45import eslintPluginJsonc from 'eslint-plugin-jsonc'
56
67import withNuxt from './.nuxt/eslint.config.mjs'
78
89export default withNuxt ( {
10+ plugins : { '@stylistic' : stylistic } ,
911 rules : {
1012 '@stylistic/array-bracket-newline' : [
1113 'error' ,
You can’t perform that action at this time.
0 commit comments