Skip to content

Commit

Permalink
Compare type rather than key
Browse files Browse the repository at this point in the history
Co-authored-by: 唯然 <weiran.zsd@outlook.com>
  • Loading branch information
FloEdelmann and aladdin-add committed Dec 18, 2024
1 parent 7b756b0 commit 3f46445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-meta-schema-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ module.exports = {
return;
}

for (const { key, value } of node.properties) {
if (!key) {
for (const { type, key, value } of node.properties) {
if (type !== 'Property') {
continue;
}
const staticKey =
Expand Down

0 comments on commit 3f46445

Please sign in to comment.