Fix edgeware linting (#2691)

This commit is contained in:
Jaco Greeff 2020-05-06 10:49:08 +02:00 committed by GitHub
parent a4333c22c4
commit 8aa03542a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -2,9 +2,13 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// structs need to be in order
/* eslint-disable sort-keys */
import * as edgewareDefinitions from 'edgeware-node-types/dist/definitions';
const edgTypes = Object.values(edgewareDefinitions)
const edgTypes = Object
.values(edgewareDefinitions)
.reduce((res, { default: { types } }): object => ({ ...res, ...types }), {});
export default {
@ -19,5 +23,5 @@ export default {
StakingLedger: 'StakingLedgerTo223',
Votes: 'VotesTo230',
ReferendumInfo: 'ReferendumInfoTo239',
Weight: 'u32',
Weight: 'u32'
};

View File

@ -2,9 +2,13 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// structs need to be in order
/* eslint-disable sort-keys */
import * as edgewareDefinitions from 'edgeware-node-types/dist/definitions';
const edgTypes = Object.values(edgewareDefinitions)
const edgTypes = Object
.values(edgewareDefinitions)
.reduce((res, { default: { types } }): object => ({ ...res, ...types }), {});
export default {
@ -19,5 +23,5 @@ export default {
StakingLedger: 'StakingLedgerTo223',
Votes: 'VotesTo230',
ReferendumInfo: 'ReferendumInfoTo239',
Weight: 'u32',
Weight: 'u32'
};