From c54c3d7f24335f7cc2c15f9abbea0d57149434fe Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 20 Jul 2020 15:29:04 +0530 Subject: [PATCH] linting for libs fixed --- libs/remix-analyzer/.eslintrc | 3 ++- .../src/solidity-analyzer/modules/lowLevelCalls.ts | 4 ++-- libs/remix-debug/src/solidity-decoder/internalCallTree.js | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/remix-analyzer/.eslintrc b/libs/remix-analyzer/.eslintrc index eca07ff2f4..71cbe7d7cd 100644 --- a/libs/remix-analyzer/.eslintrc +++ b/libs/remix-analyzer/.eslintrc @@ -1,7 +1,8 @@ { "extends": "../../.eslintrc", "rules": { - "@typescript-eslint/no-explicit-any": "off" + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": "off" }, "ignorePatterns": ["!**/*"] } diff --git a/libs/remix-analyzer/src/solidity-analyzer/modules/lowLevelCalls.ts b/libs/remix-analyzer/src/solidity-analyzer/modules/lowLevelCalls.ts index b53aff571a..dba4c7221f 100644 --- a/libs/remix-analyzer/src/solidity-analyzer/modules/lowLevelCalls.ts +++ b/libs/remix-analyzer/src/solidity-analyzer/modules/lowLevelCalls.ts @@ -40,8 +40,8 @@ export default class lowLevelCalls implements AnalyzerModule { report (compilationResults: CompilationResult): ReportObj[] { const version = getCompilerVersion(compilationResults.contracts) return this.llcNodes.map((item, i) => { - let text: string = '' - let morehref: string = '' + let text = '' + let morehref = '' switch (item.type) { case lowLevelCallTypes.CALL: text = `Use of "call": should be avoided whenever possible. diff --git a/libs/remix-debug/src/solidity-decoder/internalCallTree.js b/libs/remix-debug/src/solidity-decoder/internalCallTree.js index 1d151cc00d..1d4e505e36 100644 --- a/libs/remix-debug/src/solidity-decoder/internalCallTree.js +++ b/libs/remix-debug/src/solidity-decoder/internalCallTree.js @@ -109,6 +109,7 @@ class InternalCallTree { let functions = [] if (!scopeId) return functions let i = 0 + // eslint-disable-next-line no-constant-condition while (true) { i += 1 if (i > 1000) throw new Error('retrieFunctionStack: recursion too deep')