diff --git a/api/src/services/contentful.service.ts b/api/src/services/contentful.service.ts index 7f568dca7..c853eb405 100644 --- a/api/src/services/contentful.service.ts +++ b/api/src/services/contentful.service.ts @@ -332,7 +332,6 @@ const processField = ( } } - }; // Helper function to clean up brackets in non-numeric lang_value diff --git a/api/src/services/contentful/jsonRTE.ts b/api/src/services/contentful/jsonRTE.ts index c1c52bfd4..34d054c3c 100755 --- a/api/src/services/contentful/jsonRTE.ts +++ b/api/src/services/contentful/jsonRTE.ts @@ -315,7 +315,6 @@ function parseBlockAsset(obj: any, lang?: LangType, destination_stack_id?: Stack } - function parseBlockquote(obj: any): any { const children = obj.content.map((e: any) => parsers.get(e.nodeType)?.(e)).filter(Boolean); return { diff --git a/api/src/services/sitecore.service.ts b/api/src/services/sitecore.service.ts index 90be5c598..6d403a3d6 100644 --- a/api/src/services/sitecore.service.ts +++ b/api/src/services/sitecore.service.ts @@ -9,7 +9,6 @@ import { orgService } from './org.service.js'; import { getLogMessage } from '../utils/index.js'; import customLogger from '../utils/custom-logger.utils.js'; - const append = "a"; const baseDirName = MIGRATION_DATA_CONFIG.DATA diff --git a/api/src/services/wordpress.service.ts b/api/src/services/wordpress.service.ts index 4fb9d05b0..6a659397f 100644 --- a/api/src/services/wordpress.service.ts +++ b/api/src/services/wordpress.service.ts @@ -16,7 +16,6 @@ const virtualConsole = new jsdom.VirtualConsole(); // Get the current file's path const __filename = fileURLToPath(import.meta.url); - // Get the current directory const __dirname = path.dirname(__filename); diff --git a/index.js b/index.js index 0188709e4..8993572b9 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,6 @@ const envContents = { }; - // Function to create env files const createEnvFiles = () => { // Loop through each key in the envFilePaths object diff --git a/upload-api/migration-contentful/config/index.json b/upload-api/migration-contentful/config/index.json index ea84a37f4..3c2a1243f 100644 --- a/upload-api/migration-contentful/config/index.json +++ b/upload-api/migration-contentful/config/index.json @@ -4,6 +4,4 @@ "contentful": "contentfulSchema" }, "fileName": "en-us.json" - - } \ No newline at end of file diff --git a/upload-api/migration-sitecore/constants/index.js b/upload-api/migration-sitecore/constants/index.js index da480f0c6..3496c92d6 100644 --- a/upload-api/migration-sitecore/constants/index.js +++ b/upload-api/migration-sitecore/constants/index.js @@ -43,7 +43,6 @@ const MIGRATION_DATA_CONFIG = { EXPORT_INFO_FILE: "export-info.json" } - module.exports = { MIGRATION_DATA_CONFIG }; \ No newline at end of file diff --git a/upload-api/migration-wordpress/config/index.json b/upload-api/migration-wordpress/config/index.json index 8f0806c34..661544d9f 100644 --- a/upload-api/migration-wordpress/config/index.json +++ b/upload-api/migration-wordpress/config/index.json @@ -47,7 +47,6 @@ "fileName": "en-us.json", "masterfile": "posts.json" - } } } diff --git a/upload-api/src/config/index.ts b/upload-api/src/config/index.ts index ad26b1411..7c80dc036 100644 --- a/upload-api/src/config/index.ts +++ b/upload-api/src/config/index.ts @@ -14,7 +14,6 @@ export default { }, - localPath: '/home/gaurishn/Documents/contentstack/sitetitle.xml' //package 45.zip' // localPath: '/Users/umesh.more/Documents/ui-migration/migration-v2-node-server/upload-api/extracted_files/package 45.zip' }; diff --git a/upload-api/src/models/contentful.json b/upload-api/src/models/contentful.json index 441a70bac..5ff2ce71d 100644 --- a/upload-api/src/models/contentful.json +++ b/upload-api/src/models/contentful.json @@ -31,5 +31,4 @@ "name": "roles", "required": "false" } - } diff --git a/upload-api/src/models/wordpress.json b/upload-api/src/models/wordpress.json index 52e3e0f32..b0f90bfdc 100644 --- a/upload-api/src/models/wordpress.json +++ b/upload-api/src/models/wordpress.json @@ -23,5 +23,4 @@ "name": "wp\\:attachment_url", "required": "false" } - } diff --git a/upload-api/src/services/contentful/index.ts b/upload-api/src/services/contentful/index.ts index cbd5d6c7c..9ca2c6371 100644 --- a/upload-api/src/services/contentful/index.ts +++ b/upload-api/src/services/contentful/index.ts @@ -7,7 +7,6 @@ import { Config } from '../../models/types'; const { extractContentTypes, createInitialMapper } = require('migration-contentful'); - const createContentfulMapper = async ( projectId: string | string[], app_token: string | string[], diff --git a/upload-api/src/validators/contentful/index.ts b/upload-api/src/validators/contentful/index.ts index a07116347..16a7e6818 100644 --- a/upload-api/src/validators/contentful/index.ts +++ b/upload-api/src/validators/contentful/index.ts @@ -5,7 +5,6 @@ interface JsonData { [key: string]: any; } - //function to validate json file data function contentfulValidator(data: string): boolean { let jsonData: JsonData; diff --git a/upload-api/src/validators/sitecore/index.ts b/upload-api/src/validators/sitecore/index.ts index 69ecb2913..551c50e6f 100644 --- a/upload-api/src/validators/sitecore/index.ts +++ b/upload-api/src/validators/sitecore/index.ts @@ -9,7 +9,6 @@ interface props { data: items; } - async function sitecoreValidator({ data }: props) { try { let templates: any[] = []; diff --git a/upload-api/src/validators/wordpress/index.ts b/upload-api/src/validators/wordpress/index.ts index 2a758e99a..86570598c 100644 --- a/upload-api/src/validators/wordpress/index.ts +++ b/upload-api/src/validators/wordpress/index.ts @@ -1,7 +1,6 @@ import Config from '../../models/wordpress.json'; import * as Cheerio from 'cheerio'; - //function to validate xml file data function wordpressValidator(data: string): boolean { try { diff --git a/upload-api/tsconfig.json b/upload-api/tsconfig.json index dbb6d8bba..f57491a8e 100644 --- a/upload-api/tsconfig.json +++ b/upload-api/tsconfig.json @@ -44,6 +44,7 @@ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + /* JavaScript Support */ "allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */, // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */