From 0d65d62c95440ff124e2733f13053b10fba8e8d6 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 15 Jun 2023 08:08:05 +0800 Subject: [PATCH] style: add `restrict-template-expressions` comment avoid eslint error (#6677) --- pkg-manager/core/src/install/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg-manager/core/src/install/index.ts b/pkg-manager/core/src/install/index.ts index 0e7b3358e51..5738ca9b877 100644 --- a/pkg-manager/core/src/install/index.ts +++ b/pkg-manager/core/src/install/index.ts @@ -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')), { @@ -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 */ } } }