diff --git a/src/resolvers/md2md.ts b/src/resolvers/md2md.ts index 19387ef7..7496c4ac 100644 --- a/src/resolvers/md2md.ts +++ b/src/resolvers/md2md.ts @@ -40,6 +40,8 @@ export async function resolveMd2Md(options: ResolveMd2MdOptions): Promise { +async function getContributorsMetadataString( + options: MetaDataOptions, fileContent: string, +): Promise { const {isContributorsEnabled, vcsConnector, fileData} = options; if (isContributorsEnabled && vcsConnector) { @@ -117,6 +119,8 @@ async function getContributorsMetadataString(options: MetaDataOptions, fileConte return getFileContributorsMetadata(updatedFileData, vcsConnector); } + + return undefined; } function getUpdatedMetadataString(newMetadatas: string[], defaultMetadata = ''): string { diff --git a/src/services/plugins.ts b/src/services/plugins.ts index 02441cbe..08416923 100644 --- a/src/services/plugins.ts +++ b/src/services/plugins.ts @@ -76,5 +76,6 @@ export function getDefaultLintConfig(): LintConfig | undefined { // https://github.com/webpack/webpack/issues/4175#issuecomment-323023911 function requireDynamically(path: string) { + // eslint-disable-next-line no-eval return eval(`require('${path}');`); // Ensure Webpack does not analyze the require statement } diff --git a/src/services/tocs.ts b/src/services/tocs.ts index 54bcaa39..6bfd5e75 100644 --- a/src/services/tocs.ts +++ b/src/services/tocs.ts @@ -417,7 +417,9 @@ function _replaceIncludes(items: YfmToc[], tocDir: string, sourcesDir: string, v includedInlineItems = includedTocItems; } } catch (err) { - const message = `Error while including toc: ${bold(includeTocPath)} to ${bold(join(tocDir, 'toc.yaml'))}`; + const message = ( + `Error while including toc: ${bold(includeTocPath)} to ${bold(join(tocDir, 'toc.yaml'))}` + ); console.log(message, err); log.error(message); return acc; diff --git a/src/utils/markup.ts b/src/utils/markup.ts index f19e451d..a6408110 100644 --- a/src/utils/markup.ts +++ b/src/utils/markup.ts @@ -71,6 +71,8 @@ function getMetadata(metadata: Record): string { .join('\n'); } +export const сarriage = platform === Platforms.WINDOWS ? '\r\n' : '\n'; + export function joinSinglePageResults(singlePageResults: SinglePageResult[]): string { const delimeter = `${сarriage}${сarriage}
${сarriage}${сarriage}`; return singlePageResults @@ -82,5 +84,3 @@ export function joinSinglePageResults(singlePageResults: SinglePageResult[]): st export function replaceDoubleToSingleQuotes(str: string): string { return str.replace(/"/g, '\''); } - -export const сarriage = platform === Platforms.WINDOWS ? '\r\n' : '\n';