From 498f20516e31c9b9973b6f07121c0f9207647105 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Mon, 2 Nov 2020 22:27:20 +0200 Subject: [PATCH] Fix lint issues in contracts --- packages/concordia-contracts/index.js | 2 +- .../migrations/1_initial_migration.js | 1 + .../migrations/2_deploy_contracts.js | 1 + .../concordia-contracts/truffle-config.js | 40 +++++++++---------- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/packages/concordia-contracts/index.js b/packages/concordia-contracts/index.js index c9b676f..7440d0d 100644 --- a/packages/concordia-contracts/index.js +++ b/packages/concordia-contracts/index.js @@ -9,5 +9,5 @@ try { } module.exports = { - contracts: [Forum] + contracts: [Forum], }; diff --git a/packages/concordia-contracts/migrations/1_initial_migration.js b/packages/concordia-contracts/migrations/1_initial_migration.js index f28d653..2565467 100644 --- a/packages/concordia-contracts/migrations/1_initial_migration.js +++ b/packages/concordia-contracts/migrations/1_initial_migration.js @@ -1,5 +1,6 @@ const Migrations = artifacts.require('./Migrations.sol'); +// eslint-disable-next-line func-names module.exports = function (deployer) { deployer.deploy(Migrations); }; diff --git a/packages/concordia-contracts/migrations/2_deploy_contracts.js b/packages/concordia-contracts/migrations/2_deploy_contracts.js index 616b16e..c94e2cb 100644 --- a/packages/concordia-contracts/migrations/2_deploy_contracts.js +++ b/packages/concordia-contracts/migrations/2_deploy_contracts.js @@ -1,5 +1,6 @@ const Forum = artifacts.require('Forum'); +// eslint-disable-next-line func-names module.exports = function (deployer) { deployer.deploy(Forum); }; diff --git a/packages/concordia-contracts/truffle-config.js b/packages/concordia-contracts/truffle-config.js index 7dd0968..ab6d593 100644 --- a/packages/concordia-contracts/truffle-config.js +++ b/packages/concordia-contracts/truffle-config.js @@ -1,27 +1,27 @@ -const path = require("path"); +const path = require('path'); const { GANACHE_HOST } = process.env; const { GANACHE_PORT } = process.env; module.exports = { - // See - // to customize your Truffle configuration! - compilers: { - solc: { - version: "0.7.1" - } - }, - contracts_build_directory: path.join(__dirname, 'build/'), - networks: { - develop: { - host: GANACHE_HOST || '127.0.0.1', - port: GANACHE_PORT || '8545', - network_id: '*', + // See + // to customize your Truffle configuration! + compilers: { + solc: { + version: '0.7.1', + }, + }, + contracts_build_directory: path.join(__dirname, 'build/'), + networks: { + develop: { + host: GANACHE_HOST || '127.0.0.1', + port: GANACHE_PORT || '8545', + network_id: '*', + }, + test: { + host: GANACHE_HOST || '127.0.0.1', + port: GANACHE_PORT || '8546', + network_id: '*', + }, }, - test: { - host: GANACHE_HOST || '127.0.0.1', - port: GANACHE_PORT || '8546', - network_id: '*', - } - } };