From f77afd072bb8a91a0628a3b32353d2379f47dd74 Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Fri, 25 Nov 2016 19:48:06 +0100 Subject: [PATCH] Updated ESLINT and fixing linting issues --- js/.eslintrc.json | 3 ++- .../dapps/localtx/Application/application.js | 24 +++++++++---------- .../dapps/localtx/Transaction/transaction.js | 9 ++++--- js/src/dapps/signaturereg/Import/import.js | 2 +- js/src/dapps/tokenreg.js | 6 ++--- js/src/dapps/tokenreg/Tokens/actions.js | 2 +- js/src/modals/LoadContract/loadContract.js | 24 +++++++++---------- .../modals/PasswordManager/passwordManager.js | 8 +++---- .../modals/SMSVerification/SMSVerification.js | 2 +- js/src/ui/Container/Title/title.js | 6 ++--- js/src/ui/Tooltips/Tooltip/tooltip.js | 8 +++---- js/src/views/Accounts/accounts.js | 2 +- js/src/views/Application/TabBar/tabBar.js | 4 ++-- js/src/views/Dapp/dapp.js | 3 +-- js/src/views/Dapps/AddDapps/AddDapps.js | 3 +-- .../TransactionPendingForm.js | 2 +- js/src/views/Status/components/Calls/Calls.js | 2 +- .../components/EditableValue/EditableValue.js | 8 +++---- .../components/JsonEditor/JsonEditor.js | 2 +- .../Status/components/RpcCalls/RpcCalls.js | 2 +- .../Status/components/RpcDocs/RpcDocs.js | 2 +- .../views/Status/components/RpcNav/RpcNav.js | 4 ++-- js/src/views/WriteContract/writeContract.js | 3 +-- 23 files changed, 64 insertions(+), 67 deletions(-) diff --git a/js/.eslintrc.json b/js/.eslintrc.json index b649a1bea..198750580 100644 --- a/js/.eslintrc.json +++ b/js/.eslintrc.json @@ -15,6 +15,7 @@ "no-debugger": "error", "no-alert": "error", "jsx-quotes": ["error", "prefer-single"], - "react/jsx-curly-spacing": ["error", "always"] + "react/jsx-curly-spacing": ["error", "always"], + "object-property-newline": 0 } } diff --git a/js/src/dapps/localtx/Application/application.js b/js/src/dapps/localtx/Application/application.js index 7d220611f..da435b57d 100644 --- a/js/src/dapps/localtx/Application/application.js +++ b/js/src/dapps/localtx/Application/application.js @@ -158,18 +158,18 @@ export default class Application extends Component { { Transaction.renderHeader() } - { - transactions.map((tx, idx) => ( - - )) - } + { + transactions.map((tx, idx) => ( + + )) + } ); diff --git a/js/src/dapps/localtx/Transaction/transaction.js b/js/src/dapps/localtx/Transaction/transaction.js index 90981304b..17a45ecd6 100644 --- a/js/src/dapps/localtx/Transaction/transaction.js +++ b/js/src/dapps/localtx/Transaction/transaction.js @@ -83,7 +83,7 @@ class BaseTransaction extends Component { return ( - { noOfPropagations } ({ noOfPeers } peers) + { noOfPropagations } ({ noOfPeers } peers) ); } @@ -110,7 +110,7 @@ export class Transaction extends BaseTransaction { static renderHeader () { return ( - + Transaction @@ -129,8 +129,7 @@ export class Transaction extends BaseTransaction { # Propagated - - + ); } @@ -201,7 +200,7 @@ export class LocalTransaction extends BaseTransaction { static renderHeader () { return ( - + Transaction diff --git a/js/src/dapps/signaturereg/Import/import.js b/js/src/dapps/signaturereg/Import/import.js index 90edf9415..55f7d9334 100644 --- a/js/src/dapps/signaturereg/Import/import.js +++ b/js/src/dapps/signaturereg/Import/import.js @@ -73,7 +73,7 @@ export default class Import extends Component { Provide the ABI (Contract Interface) in the space provided below. Only non-constant functions (names & types) will be imported, while constant functions and existing signatures will be ignored.
- +