diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 23145fa54..923a2dc7f 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -126,7 +126,8 @@ jobs: "@typescript-eslint/no-var-requires": "off", "no-prototype-builtins": "off", "@typescript-eslint/no-explicit-any": "off", - "no-constant-condition": "off" + "no-constant-condition": "off", + "no-constant-binary-expression": "off", } } ]; diff --git a/upload-api/migration-sitecore/libs/configuration.js b/upload-api/migration-sitecore/libs/configuration.js index 0cfba3282..b10aa5ca2 100644 --- a/upload-api/migration-sitecore/libs/configuration.js +++ b/upload-api/migration-sitecore/libs/configuration.js @@ -13,6 +13,7 @@ const { + const assignFolderName = ({ path }) => { const spliter = "/sitecore"; const newPath = path.split(spliter)?.[1]; diff --git a/upload-api/migration-sitecore/libs/contenttypes.js b/upload-api/migration-sitecore/libs/contenttypes.js index 3970722c7..44dc62a93 100644 --- a/upload-api/migration-sitecore/libs/contenttypes.js +++ b/upload-api/migration-sitecore/libs/contenttypes.js @@ -11,7 +11,6 @@ const configChecker = path?.join('content', 'Common', 'Configuration'); const append = 'a'; let config = {}; - const { DATA_MAPPER_DIR, DATA_MAPPER_CONFIG_FILE, @@ -373,8 +372,7 @@ const groupFlat = (data, item) => { contentstackField: item?.meta?.name, contentstackFieldUid: uidCorrector({ uid: item?.meta?.key }), contentstackFieldType: 'group', - backupFieldType: 'group', - backupFieldUid: uidCorrector({ uid: item?.meta?.key }) + backupFieldType: 'group' }; flat?.push(group); data?.schema?.forEach((element) => { @@ -398,6 +396,7 @@ const contentTypeMapper = ({ components, standardValues, content_type, + // eslint-disable-next-line @typescript-eslint/no-unused-vars basePath, sitecore_folder, affix