From a33d6faf923a6835a274a8b76d1ef0a8252c98ef Mon Sep 17 00:00:00 2001 From: RohitKini <57343193+RohitKini@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:25:42 +0530 Subject: [PATCH] workflow eslint check --- .eslintignore | 1 - .github/workflows/repo-sync.yml | 2 +- upload-api/migration-sitecore/constants/index.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 3864e8788..000000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -/cli diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 7451429a9..1ea83a94f 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -127,7 +127,7 @@ jobs: # # Remove unused imports and missing file references echo "Running ESLint to remove unused imports..." npm install eslint -g - eslint . --fix --ignore-path .eslintignore + eslint . --fix --ignore-pattern "cli/**" # echo "Running autoflake to remove unused imports..." # pip install autoflake diff --git a/upload-api/migration-sitecore/constants/index.js b/upload-api/migration-sitecore/constants/index.js index 5290f50ba..3e5e04fc1 100644 --- a/upload-api/migration-sitecore/constants/index.js +++ b/upload-api/migration-sitecore/constants/index.js @@ -36,6 +36,7 @@ const MIGRATION_DATA_CONFIG = { ENTRIES_DIR_NAME : "entries", ENTRIES_MASTER_FILE : "index.json", + GLOBAL_FIELDS_DIR_NAME : "global_fields", GLOBAL_FIELDS_FILE: "globalfields", GLOBAL_FIELDS_FILE_NAME : "globalfields.json",