Skip to content

Commit

Permalink
Update eslint.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont authored Oct 4, 2024
1 parent 44b35a4 commit 7f07c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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';'",
Expand Down

0 comments on commit 7f07c49

Please sign in to comment.