🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/eslint-plugin/src/rules/no-deprecated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,15 @@ export default createRule<Options, MessageIds>({
return;
}

// Computed identifier expressions are handled by checkMemberExpression
if (
parent.type === AST_NODE_TYPES.MemberExpression &&
parent.computed &&
parent.property === node
) {
return;
}

if (parent.type === AST_NODE_TYPES.ExportSpecifier) {
// only deal with the alias (exported) side, not the local binding
if (parent.exported !== node) {
Expand Down
Loading
Loading