diff --git a/packages/common-ts/src/common/logger.ts b/packages/common-ts/src/common/logger.ts index 0c8c2b79c88c4..387521af3c5aa 100644 --- a/packages/common-ts/src/common/logger.ts +++ b/packages/common-ts/src/common/logger.ts @@ -41,7 +41,9 @@ export class Logger { }), }) } - if (options.streams) loggerStreams = loggerStreams.concat(options.streams) + if (options.streams) { + loggerStreams = loggerStreams.concat(options.streams) + } this.inner = pino(loggerOptions, pinoms.multistream(loggerStreams)) } diff --git a/packages/hardhat-ovm/src/index.ts b/packages/hardhat-ovm/src/index.ts index 3b95daec5f016..5fb17caf4c87d 100644 --- a/packages/hardhat-ovm/src/index.ts +++ b/packages/hardhat-ovm/src/index.ts @@ -47,8 +47,9 @@ const getOvmSolcPath = async (version: string): Promise => { const ovmCompilersCache = path.join(await getCompilersDir(), 'ovm') // Need to create the OVM compiler cache folder if it doesn't already exist. - if (!fs.existsSync(ovmCompilersCache)) - [fs.mkdirSync(ovmCompilersCache, { recursive: true })] + if (!fs.existsSync(ovmCompilersCache)) { + fs.mkdirSync(ovmCompilersCache, { recursive: true }) + } // Pull information about the latest commit in the solc-bin repo. We'll use this to invalidate // our compiler cache if necessary. @@ -186,7 +187,9 @@ subtask( } } - if (Object.keys(ovmInput.sources).length === 0) return {} + if (Object.keys(ovmInput.sources).length === 0) { + return {} + } // Build both inputs separately. const ovmOutput = await hre.run(TASK_COMPILE_SOLIDITY_RUN_SOLCJS, { diff --git a/tslint.base.json b/tslint.base.json index 350b4196a46ac..28bab7f8245b3 100644 --- a/tslint.base.json +++ b/tslint.base.json @@ -27,7 +27,8 @@ "variable-name": false, "no-focused-test": true, "array-type": false, - "prettier": [true, "./.prettierrc.json"] + "prettier": [true, "./.prettierrc.json"], + "curly": true }, "linterOptions": { "exclude": [