When I run pnpm:e2e, it will create .vercel dir.
Them when I run pnpm format && pnpm lint, it shows errors from .vercel/output directory.
As you can see I added vercels to .prettieringnore file.
The following outputs are some of them.
/Users/shinichiokada/Downloads/svelte/svelte-vercel-problem/.vercel/output/static/_app/immutable/nodes/1.gcVpeaF4.js
1:506 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
1:565 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
1:584 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
1:661 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
1:709 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
1:1106 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
1:1124 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
/Users/shinichiokada/Downloads/svelte/svelte-vercel-problem/.vercel/output/static/_app/immutable/nodes/2.C9REa21g.js
1:416 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
Reproduction
npx sv create svelte-vercel-adapter
pnpm i -D @sveltejs/adapter-vercel
Update svelte.config.js
import adapter from '@sveltejs/adapter-vercel';
...
Run test, format and lint:
cd svelte-vercel-adapter
pnpm test:e2e
pnpm format && pnpm lint
Describe the bug
After installing
@sveltejs/adapter-vercel
to a new svelte project, I added the following .prettierignore:When I run
pnpm:e2e
, it will create.vercel
dir. Them when I runpnpm format && pnpm lint
, it shows errors from.vercel/output
directory.As you can see I added vercels to .prettieringnore file.
The following outputs are some of them.
Reproduction
Update svelte.config.js
Run test, format and lint:
My current solution
I modify the lint scripts:
Logs
No response
System Info
Severity
annoyance
Additional Information
No response