Switches leadWorthy to severity; adds context to string user-matcher

This commit is contained in:
Tom Hudson
2023-06-06 11:07:12 +01:00
parent 308188c007
commit 2650101da3
16 changed files with 156 additions and 38 deletions

View File

@@ -94,7 +94,10 @@ func matchXHR() URLMatcher {
break
}
parent = candidate
if parent.Type() == "function_declaration" {
pt := parent.Type()
if pt == "function_declaration" ||
pt == "function" ||
pt == "arrow_function" {
break
}
}