Revert "Print ; for module declaration and declare function" (#18852) (#19333)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-10 09:22:01 +08:00
1 parent 94c71e346f
commit 2eaad40bb2
9 files changed
+5 -203

No files matched your search

-35
View File
@@ -1,35 +0,0 @@
#### Fix required semicolon in `no-semi` mode (#18852 by @fisker)
<!-- prettier-ignore -->
```tsx
// Input
declare module "autoprefixer";
{
alert()
}
declare function a();
{
alert()
}
// Prettier stable (--no-semi)
declare module "autoprefixer"
{
alert()
}
declare function a()
{
alert()
}
// Prettier main (--no-semi)
declare module "autoprefixer";
{
alert();
}
declare function a();
{
alert();
}
```