Commit 27238e00 authored by aniket-engg's avatar aniket-engg Committed by Aniket

linting for libs fixed

parent d73e2271
{
"extends": "../../.eslintrc",
"rules": {
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"ignorePatterns": ["!**/*"]
}
......@@ -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.
......
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment