-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
chore: fix prettier ignoring source code in with build in the name #15133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
48e4b9e
75e38e1
6dbb934
e9cad4f
623d445
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a way we could do this with a negative pattern? i.e. ignore
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doing just |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| test/build-errors/apps/syntax-error/src/routes/+page.svelte | ||
| /types | ||
| src/runtime/components/svelte-5/layout.svelte | ||
| /src/runtime/components/svelte-5/layout.svelte | ||
| .svelte-kit | ||
| .custom-out-dir | ||
| build | ||
| test-results | ||
| /test/apps/basics/test/errors.json | ||
| /test/build-errors/apps/syntax-error/src/routes/+page.svelte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the heck is up with this? Why aren't these files just ignored if we're formatting 0% of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like maybe it's some kind of a performance hack? (#13058) Perhaps @dominikg knows more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rangeEnd 0 makes prettier read the first 0 bytes, so not read the file at all.
this is a way to define ignores in prettier config rather than a separate .prettierignore