@@ -78,12 +78,15 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
78
78
setIsModalOpen ( false )
79
79
}
80
80
81
- const sortData = ( data : any ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
82
- const sortedData : any = { } // eslint-disable-line @typescript-eslint/no-explicit-any
81
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
82
+ const sortData = ( data : any ) => {
83
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
+ const sortedData : any = { }
83
85
Object . keys ( data )
84
86
. sort ( )
85
87
. forEach ( ( key ) => {
86
- const sortedInnerData : any = { } // eslint-disable-line @typescript-eslint/no-explicit-any
88
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
+ const sortedInnerData : any = { }
87
90
Object . keys ( data [ key ] )
88
91
. sort ( )
89
92
. forEach ( ( innerKey ) => {
@@ -99,9 +102,10 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
99
102
)
100
103
// sort price accounts keys
101
104
sortedInnerData [ innerKey ] = sortedInnerData [ innerKey ] . map (
102
- ( priceAccount : any ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
103
-
104
- const sortedPriceAccount : any = { } // eslint-disable-line @typescript-eslint/no-explicit-any
105
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
106
+ ( priceAccount : any ) => {
107
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
108
+ const sortedPriceAccount : any = { }
105
109
Object . keys ( priceAccount )
106
110
. sort ( )
107
111
. forEach ( ( priceAccountKey ) => {
@@ -167,9 +171,10 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
167
171
}
168
172
} , [ rawConfig , dataIsLoading , sortDataMemo , cluster ] )
169
173
170
- const sortObjectByKeys = ( obj : any ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
171
- // eslint-disable-line @typescript-eslint/no-explicit-any
172
- const sortedObj : any = { } // eslint-disable-line @typescript-eslint/no-explicit-any
174
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
175
+ const sortObjectByKeys = ( obj : any ) => {
176
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
177
+ const sortedObj : any = { }
173
178
Object . keys ( obj )
174
179
. sort ( )
175
180
. forEach ( ( key ) => {
@@ -253,8 +258,8 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
253
258
const isValidJson = ( json : string ) => {
254
259
try {
255
260
JSON . parse ( json )
256
- } catch ( e : any ) { // eslint-disable-line @typescript-eslint/no-explicit-any
257
- // eslint-disable-line @typescript-eslint/no-explicit- any
261
+ // eslint-disable-next -line @typescript-eslint/no-explicit-any
262
+ } catch ( e : any ) {
258
263
toast . error ( capitalizeFirstLetter ( e . message ) )
259
264
return false
260
265
}
@@ -641,8 +646,8 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
641
646
} )
642
647
}
643
648
644
- const MetadataChangesRows = ( { changes } : { changes : any } ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
645
- // eslint-disable-line @typescript-eslint/no-explicit- any
649
+ // eslint-disable-next -line @typescript-eslint/no-explicit-any
650
+ const MetadataChangesRows = ( { changes } : { changes : any } ) => {
646
651
const addPriceFeed = changes . prev === undefined && changes . new !== undefined
647
652
return (
648
653
< >
@@ -674,7 +679,8 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
674
679
)
675
680
}
676
681
677
- const PriceAccountsChangesRows = ( { changes } : { changes : any } ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
682
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
683
+ const PriceAccountsChangesRows = ( { changes } : { changes : any } ) => {
678
684
const addPriceFeed = changes . prev === undefined && changes . new !== undefined
679
685
return (
680
686
< >
@@ -733,7 +739,8 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
733
739
)
734
740
}
735
741
736
- const PublisherKeysChangesRows = ( { changes } : { changes : any } ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
742
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
743
+ const PublisherKeysChangesRows = ( { changes } : { changes : any } ) => {
737
744
const addPriceFeed = changes . prev === undefined && changes . new !== undefined
738
745
const publisherKeysToAdd = addPriceFeed
739
746
? changes . new
@@ -775,7 +782,8 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
775
782
)
776
783
}
777
784
778
- const NewPriceFeedsRows = ( { priceFeedData } : { priceFeedData : any } ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
785
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
786
+ const NewPriceFeedsRows = ( { priceFeedData } : { priceFeedData : any } ) => {
779
787
return (
780
788
< >
781
789
< MetadataChangesRows
@@ -805,7 +813,8 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
805
813
)
806
814
}
807
815
808
- const ModalContent = ( { changes } : { changes : any } ) => { // eslint-disable-line @typescript-eslint/no-explicit-any
816
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
817
+ const ModalContent = ( { changes } : { changes : any } ) => {
809
818
return (
810
819
< >
811
820
{ Object . keys ( changes ) . length > 0 ? (
0 commit comments