chore(eslint): lint:fix on all packages (#7941)

- Run `lint:fix` on all packages to fix anything that may have slipped
through without being autofixed
- A few manual fixes as well.
This commit is contained in:
Elliot DeNolf
2024-08-28 22:35:17 -04:00
committed by GitHub
parent 657326b528
commit ec9d1cda2d
22 changed files with 36 additions and 56 deletions

View File

@@ -77,12 +77,12 @@ describe('reservedFieldNames - collections -', () => {
describe('auth -', () => {
const collectionWithAuth: CollectionConfig = {
slug: 'collection-with-auth',
fields: [],
auth: {
verify: true,
useAPIKey: true,
loginWithUsername: true,
useAPIKey: true,
verify: true,
},
fields: [],
}
it('should throw on hash', async () => {

View File

@@ -276,7 +276,7 @@ export const promise = async <T>({
if (typeof siblingData[field.name] === 'undefined') {
// If no incoming data, but existing document data is found, merge it in
if (typeof siblingDoc[field.name] !== 'undefined') {
siblingData[field.name] = cloneDataFromOriginalDoc(siblingDoc[field.name] as any)
siblingData[field.name] = cloneDataFromOriginalDoc(siblingDoc[field.name])
// Otherwise compute default value
} else if (typeof field.defaultValue !== 'undefined') {