You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
eslint-config-custom-server is invalid and throws an typescript error on pnpm run lint
Expected Behavior
pnpm run lint should not throw an error and should work with typescript
To Reproduce
npx create-turbo -e kitchen-sink
cd kitchen-sink
edit apps/api/src/index.ts as following (add any type to port):
import{createServer}from"./server";import{log}from"logger";constport: any=process.env.PORT||5001;constserver=createServer();server.listen(port,()=>{log(`api running on ${port}`);});
pnpm run lint will throw an error:
api:lint:
api:lint: > api@0.0.0 lint /Users/alex/DevMe/kitchen-sinkek/apps/api
api:lint: > tsc --noEmit && eslint "src/**/*.ts*"
api:lint:
api:lint:
api:lint: /Users/alex/DevMe/kitchen-sinkek/apps/api/src/index.ts
api:lint: 4:11 error Parsing error: Unexpected token :
api:lint:
api:lint: ✖ 1 problem (1 error, 0 warnings)
api:lint:
api:lint: ELIFECYCLE Command failed with exit code 1.
api:lint: ERROR: command finished with error: command (/Users/alex/devme/kitchen-sinkek/apps/api) pnpm run lint exited (1)
command (/Users/alex/devme/kitchen-sinkek/apps/api) pnpm run lint exited (1)
Tasks: 6 successful, 7 total
Cached: 6 cached, 7 total
Time: 4.312s
Failed: api#lint
ERROR run failed: command exited (1)
ELIFECYCLE Command failed with exit code 1.
Reproduction Repo
No response
The text was updated successfully, but these errors were encountered:
What version of Turborepo are you using?
1.10.3
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
eslint-config-custom-server
is invalid and throws an typescript error onpnpm run lint
Expected Behavior
pnpm run lint
should not throw an error and should work with typescriptTo Reproduce
npx create-turbo -e kitchen-sink
cd kitchen-sink
apps/api/src/index.ts
as following (addany
type toport
):pnpm run lint
will throw an error:Reproduction Repo
No response
The text was updated successfully, but these errors were encountered: