mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(linter/no-array-index-key): compile error due to it uses a renamed API (#7391)
Fix: https://github.com/oxc-project/oxc/pull/6960#issuecomment-2490754348
This commit is contained in:
parent
7f8747dd6a
commit
a32f5a73d3
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ fn check_react_clone_element<'a>(
|
|||
}
|
||||
|
||||
fn find_index_param_name<'a>(node: &'a AstNode, ctx: &'a LintContext) -> Option<&'a str> {
|
||||
for ancestor in ctx.nodes().iter_parents(node.id()).skip(1) {
|
||||
for ancestor in ctx.nodes().ancestors(node.id()).skip(1) {
|
||||
if let AstKind::CallExpression(call_expr) = ancestor.kind() {
|
||||
let Expression::StaticMemberExpression(expr) = &call_expr.callee else {
|
||||
return None;
|
||||
|
|
|
|||
Loading…
Reference in a new issue