From 238a13afb819de1a35b67873f6fb19074a815b38 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Wed, 11 May 2022 14:13:23 +0530 Subject: [PATCH] linting fix --- .../src/templates/erc20/scripts/ethers.ts | 2 +- .../src/templates/remixDefault/scripts/ethers.ts | 2 +- libs/remix-ws-templates/tsconfig.lib.json | 2 +- workspace.json | 7 +++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libs/remix-ws-templates/src/templates/erc20/scripts/ethers.ts b/libs/remix-ws-templates/src/templates/erc20/scripts/ethers.ts index 12f5b7354d..04c363322a 100644 --- a/libs/remix-ws-templates/src/templates/erc20/scripts/ethers.ts +++ b/libs/remix-ws-templates/src/templates/erc20/scripts/ethers.ts @@ -12,7 +12,7 @@ export const deploy = async (contractName: string, args: Array, from?: stri // 'web3Provider' is a remix global variable object const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner() - let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer); + const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer); let contract if (from) { diff --git a/libs/remix-ws-templates/src/templates/remixDefault/scripts/ethers.ts b/libs/remix-ws-templates/src/templates/remixDefault/scripts/ethers.ts index dc236caefb..5f11f62e5f 100644 --- a/libs/remix-ws-templates/src/templates/remixDefault/scripts/ethers.ts +++ b/libs/remix-ws-templates/src/templates/remixDefault/scripts/ethers.ts @@ -9,7 +9,7 @@ export const deploy = async (contractName: string, args: Array, from?: stri // 'web3Provider' is a remix global variable object const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner() - let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer); + const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer); let contract if (from) { diff --git a/libs/remix-ws-templates/tsconfig.lib.json b/libs/remix-ws-templates/tsconfig.lib.json index b5f51c0965..ca57f301c9 100644 --- a/libs/remix-ws-templates/tsconfig.lib.json +++ b/libs/remix-ws-templates/tsconfig.lib.json @@ -11,5 +11,5 @@ "**/*.spec.ts", "tests/" ], - "include": ["**/*.ts", "**/*.sol"] + "include": ["**/*.ts"] } diff --git a/workspace.json b/workspace.json index 7e8853adb6..45726ee4b7 100644 --- a/workspace.json +++ b/workspace.json @@ -1222,9 +1222,12 @@ "projectType": "library", "architect": { "lint": { - "builder": "@nrwl/linter:eslint", + "builder": "@nrwl/linter:lint", "options": { - "lintFilePatterns": ["libs/remix-ws-templates/**/*.ts"] + "linter": "eslint", + "config": "libs/remix-ws-templates/.eslintrc", + "tsConfig": ["libs/remix-ws-templates/tsconfig.lib.json"], + "exclude": ["**/node_modules/**"] } } }