From 7f07c49ec1c09957e3c55fc446975641607976d0 Mon Sep 17 00:00:00 2001 From: Richard Fontein <32132657+rifont@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:12:50 +0100 Subject: [PATCH] Update eslint.config.mjs --- eslint.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 924af795998..56a09a4b1ef 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -43,7 +43,7 @@ const noRestrictedImportsMultiLevelNovuPattern = { group: [ '@novu/*/**/*', // These packages have legitimate exports 1 path part below the root level - // This flatmap logic ignores the path 1 below the root level and prevents deeper imports. + // This flatMap logic ignores the path 1 below the root level and prevents deeper imports. ...['framework', 'js', 'novui'].flatMap((pkg) => [`!@novu/${pkg}/**/*`, `@novu/${pkg}/*/**/*`]), ], message: "Please import only from the root package entry point. For example, use 'import { Client } from '@novu/node';' instead of 'import { Client } from '@novu/node/src';'",