Skip to content
Merged
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions crates/oxc_linter/src/rules/eslint/no_extend_native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ impl Rule for NoExtendNative {
continue;
}
// If the referenced name is explicitly allowed, skip it.
let compact_name = CompactStr::from(name);
if self.exceptions.contains(&compact_name) {
if self.exceptions.iter().any(|exception| name == exception) {
continue;
}
// If the first letter is capital, like `Object`, we will assume it is a native object
Expand Down
Loading