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
So the Prettier issues were that package.json and pnpm-lock.yaml get formatted.
For package.json, I'd expect pnpm format to be a null op. That is the generated boilerplate code should all be passed by prettier --check when pnpm lint is run. (I add pnpm format:check to my package.json just to be able to run a prettier --check without ESLint.)
For pnpm-lock.yaml, the issue is that both Prettier and ESLint use .gitignore for their --ignore-path:
Describe the bug
From @delhanty in #4805 (comment):
So the Prettier issues were that
package.json
andpnpm-lock.yaml
get formatted.For
package.json
, I'd expectpnpm format
to be a null op. That is the generated boilerplate code should all be passed byprettier --check
whenpnpm lint
is run. (I addpnpm format:check
to mypackage.json
just to be able to run aprettier --check
without ESLint.)For
pnpm-lock.yaml
, the issue is that both Prettier and ESLint use.gitignore
for their--ignore-path
:One of the first things I do is fix that by copying
.gitignore
to.prettierignore
and.eslintignore
so that I can edit mypackage.json
to.prettierignore
and.eslintignore
end up being close to the same, but have blocks likewhich isn't dependent on the choice of PNPM, NPM or YARN.
Reproduction
I chose "SvelteKit demo app" and then
If it makes a difference, I develop with pnpm. (With pnpm v7,
pnpm init svelte
appears broken though.)pnpm build
is necessary to create.svelte-kit/tsconfig.json
, which is extended bytsconfig.json
.Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: