1
0
Fork 0
mirror of synced 2024-09-28 07:11:40 +12:00

Merge pull request #13308 from Budibase/reenable-no-prototype-builtins

Reenable no-prototype-builtins
This commit is contained in:
Sam Rose 2024-03-20 11:18:03 +00:00 committed by GitHub
commit 1de2002341
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -42,7 +42,6 @@
},
"rules": {
"no-unused-vars": "off",
"no-prototype-builtins": "off",
"local-rules/no-budibase-imports": "error"
}
},
@ -60,7 +59,6 @@
},
"rules": {
"no-unused-vars": "off",
"no-prototype-builtins": "off",
"local-rules/no-test-com": "error",
"local-rules/email-domain-example-com": "error",
"no-console": "warn",

View file

@ -330,7 +330,7 @@ function copyExistingPropsOver(
const existingTableSchema = entities[tableName].schema
for (let key in existingTableSchema) {
if (!existingTableSchema.hasOwnProperty(key)) {
if (!Object.prototype.hasOwnProperty.call(existingTableSchema, key)) {
continue
}
const column = existingTableSchema[key]