Skip to content

Commit

Permalink
style: add restrict-template-expressions comment avoid eslint error (
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Jun 15, 2023
1 parent e57e2d3 commit 0d65d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg-manager/core/src/install/index.ts
Expand Up @@ -417,6 +417,7 @@ Note that in CI environments, this setting is enabled by default.`,
hint: 'Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"',
})
}
/* eslint-disable @typescript-eslint/restrict-template-expressions */
throw new PnpmError('OUTDATED_LOCKFILE',
`Cannot install with "frozen-lockfile" because ${WANTED_LOCKFILE} is not up to date with ` +
path.relative(opts.lockfileDir, path.join(rootDir, 'package.json')), {
Expand All @@ -425,6 +426,7 @@ Note that in CI environments, this setting is enabled by default.`,
Failure reason:
${detailedReason ?? ''}`,
})
/* eslint-enable @typescript-eslint/restrict-template-expressions */
}
}
}
Expand Down

0 comments on commit 0d65d62

Please sign in to comment.