-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: lint test files as well (#1589)
- Loading branch information
Showing
4 changed files
with
37 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default defineEventHandler(() => { | ||
return { foo: () => 'foo' } | ||
return { foo: () => "foo" }; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { useStorage } from "#internal/nitro" | ||
import { useStorage } from "#internal/nitro"; | ||
|
||
export default defineEventHandler(async (event) => { | ||
const query = getQuery(event) | ||
const filename = query?.filename || "index.html" | ||
const serverAsset = await useStorage().getItem(`assets/files/${filename}`) | ||
return serverAsset | ||
}) | ||
const query = getQuery(event); | ||
const filename = query?.filename || "index.html"; | ||
const serverAsset = await useStorage().getItem(`assets/files/${filename}`); | ||
return serverAsset; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters