From 1fa9e62f848c57a4c027673962d103d6d5ca473c Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:40:10 +0800 Subject: [PATCH] chore: fix lint issues --- packages/schema/src/utils/ast-utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/schema/src/utils/ast-utils.ts b/packages/schema/src/utils/ast-utils.ts index 6be749eb6..a9d50cdd3 100644 --- a/packages/schema/src/utils/ast-utils.ts +++ b/packages/schema/src/utils/ast-utils.ts @@ -59,10 +59,12 @@ export function mergeBaseModel(model: Model) { const dataModel = decl as DataModel; dataModel.fields = dataModel.superTypes + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion .flatMap((superType) => updateContainer(superType.ref!.fields, dataModel)) .concat(dataModel.fields); dataModel.attributes = dataModel.superTypes + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion .flatMap((superType) => updateContainer(superType.ref!.attributes, dataModel)) .concat(dataModel.attributes); });