From 8aa03542a05418ea6b98e3b4d0eae93b2b9ec97d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 6 May 2020 10:49:08 +0200 Subject: [PATCH] Fix edgeware linting (#2691) --- packages/apps-config/src/api/chain/berlin.ts | 8 ++++++-- packages/apps-config/src/api/spec/edgeware.ts | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/apps-config/src/api/chain/berlin.ts b/packages/apps-config/src/api/chain/berlin.ts index d14a6fd1f7..2ec4bdef22 100644 --- a/packages/apps-config/src/api/chain/berlin.ts +++ b/packages/apps-config/src/api/chain/berlin.ts @@ -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' }; diff --git a/packages/apps-config/src/api/spec/edgeware.ts b/packages/apps-config/src/api/spec/edgeware.ts index d14a6fd1f7..2ec4bdef22 100644 --- a/packages/apps-config/src/api/spec/edgeware.ts +++ b/packages/apps-config/src/api/spec/edgeware.ts @@ -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' };