Skip to content

Commit ff8aa6c

Browse files
committed
fix(nf): Linting errors
1 parent f978cce commit ff8aa6c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs/native-federation-core/src/lib/core/build-for-federation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function buildForFederation(
5454
? describeExposed(config, fedOptions)
5555
: artefactInfo.exposes;
5656

57-
let cacheProjectFolder = normalizeFilename(config.name);
57+
const cacheProjectFolder = normalizeFilename(config.name);
5858
if (cacheProjectFolder.length < 1) {
5959
logger.warn(
6060
"Project name in 'federation.config.js' is empty, defaulting to root cache folder."

libs/native-federation-core/src/lib/utils/normalize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ export function normalize(path: string, trailingSlash?: boolean): string {
1717
}
1818

1919
export function normalizeFilename(path: string) {
20-
let sanitized = path.replace(/[^A-Za-z0-9]/g, '_');
20+
const sanitized = path.replace(/[^A-Za-z0-9]/g, '_');
2121
return sanitized.startsWith('_') ? sanitized.slice(1) : sanitized;
2222
}

0 commit comments

Comments
 (0)