diff --git a/packages/next/src/cli/next-lint.ts b/packages/next/src/cli/next-lint.ts index be33c14ab48fd..3370cfc53397e 100755 --- a/packages/next/src/cli/next-lint.ts +++ b/packages/next/src/cli/next-lint.ts @@ -195,8 +195,8 @@ const nextLint: CliCommand = async (argv) => { typeCheckPreflight: false, tsconfigPath: nextConfig.typescript.tsconfigPath, disableStaticImages: nextConfig.images.disableStaticImages, - hasAppDir: Boolean(appDir), - hasPagesDir: Boolean(pagesDir), + hasAppDir: !!appDir, + hasPagesDir: !!pagesDir, }) runLintCheck(baseDir, pathsToLint, hasAppDir, {