Skip to content

Commit c6e2636

Browse files
committed
chore: fix build by adding upstream dependency eslint
After updating via `npm i` the `stylistic plugin` of eslint did not work anymore.
1 parent 22debb2 commit c6e2636

File tree

19 files changed

+6849
-2276
lines changed

19 files changed

+6849
-2276
lines changed

frontend/components/bc/BcColor.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
88
defineProps<{
99
color?: Color,

frontend/components/bc/format/BcFormatAmount.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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,

frontend/components/bc/icon/BcIcon.vue

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,87 +2,87 @@
22
import { LazyBcRotate } from '#components'
33
import 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
8787
const {
8888
rotation,

frontend/components/bc/input/BcInputNumber.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const {
88
{
99
ariaLabel: string,
1010
label?: never,
11-
} |
12-
{
11+
}
12+
| {
1313
ariaLabel?: never,
1414
label: string,
1515
}

frontend/components/dashboard/table/DashboardTableSummaryDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

frontend/components/dashboard/validator/subset/DashboardValidatorSubsetList.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ function createDutyLabels(dutyObjects?: number[]) {
7676
function 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
}

frontend/composables/useBcCookie.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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)

frontend/composables/useDashboardData.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

frontend/composables/useTranslation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

1212
export 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
}

frontend/eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import eslintPluginNewlineDestructuring from 'eslint-plugin-newline-destructuring'
22
// @ts-check
33
import perfectionist from 'eslint-plugin-perfectionist'
4+
import stylistic from '@stylistic/eslint-plugin'
45
import eslintPluginJsonc from 'eslint-plugin-jsonc'
56

67
import withNuxt from './.nuxt/eslint.config.mjs'
78

89
export default withNuxt({
10+
plugins: { '@stylistic': stylistic },
911
rules: {
1012
'@stylistic/array-bracket-newline': [
1113
'error',

0 commit comments

Comments
 (0)