Skip to content

Commit ba0bab8

Browse files
Compare type rather than key
Co-authored-by: 唯然 <[email protected]>
1 parent b1ec983 commit ba0bab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules/no-meta-schema-default.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ module.exports = {
5757
return;
5858
}
5959

60-
for (const { key, value } of node.properties) {
61-
if (!key) {
60+
for (const { type, key, value } of node.properties) {
61+
if (type !== 'Property') {
6262
continue;
6363
}
6464
const staticKey =

0 commit comments

Comments
 (0)