Skip to content

Commit

Permalink
feat(linter/eslint): implement func-names
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Aug 4, 2024
1 parent 3cbdf8e commit e44034e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/oxc_linter/src/rules/eslint/func_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,9 @@ impl Rule for FuncNames {
AstKind::CallExpression(expression) => {
if let Expression::Identifier(identifier) = &expression.callee {
// check at first if the callee calls an invalid function
if invalid_funcs
if !invalid_funcs
.iter()
.find(|(func, _)| get_function_name(func) == Some(&identifier.name))
.is_none()
.any(|(func, _)| get_function_name(func) == Some(&identifier.name))
{
continue;
}
Expand Down

0 comments on commit e44034e

Please sign in to comment.