Skip to content

Commit

Permalink
fix(linter): fix broken js import
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Oct 9, 2023
1 parent 27f348d commit 52029a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/js/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ export async function addLint(
tree: Tree,
options: AddLintOptions
): Promise<GeneratorCallback> {
const { lintProjectGenerator, mapLintPattern } = ensurePackage(
'@nx/linter',
nxVersion
);
const { lintProjectGenerator } = ensurePackage('@nx/linter', nxVersion);
const { mapLintPattern } =
// nx-ignore-next-line
require('@nx/linter/src/generators/lint-project/lint-project');
const projectConfiguration = readProjectConfiguration(tree, options.name);
const task = lintProjectGenerator(tree, {
project: options.name,
Expand Down

0 comments on commit 52029a2

Please sign in to comment.