Skip to content

Commit

Permalink
style: format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 16, 2023
1 parent dfbcf77 commit aabfb9a
Show file tree
Hide file tree
Showing 11 changed files with 499 additions and 862 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,30 @@
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --ext .ts .",
"lint": "eslint --ext .ts . && prettier -c src test playground",
"lint:fix": "eslint --fix --ext .ts . && prettier -w src test playground",
"prepack": "pnpm build",
"play": "jiti playground/index.ts",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run --coverage"
},
"dependencies": {
"destr": "^1.2.2",
"node-fetch-native": "^1.0.1",
"node-fetch-native": "^1.0.2",
"ufo": "^1.0.1"
},
"devDependencies": {
"@types/node": "^18.13.0",
"@vitest/coverage-c8": "^0.28.5",
"changelogen": "^0.4.1",
"eslint": "^8.34.0",
"eslint-config-unjs": "^0.1.0",
"fetch-blob": "^3.2.0",
"formdata-polyfill": "^4.0.10",
"h3": "^1.4.0",
"jiti": "^1.17.0",
"listhen": "^1.0.2",
"standard-version": "^9.5.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"unbuild": "^1.1.1",
"vitest": "^0.28.5"
Expand Down
12 changes: 6 additions & 6 deletions playground/index.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { $fetch } from '..'
import { $fetch } from "..";

async function main () {
await $fetch('http://google.com/404')
async function main() {
await $fetch("http://google.com/404");
}

main().catch((err) => {
console.error(err)
process.exit(1)
})
console.error(err);
process.exit(1);
});
2 changes: 1 addition & 1 deletion playground/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { $fetch } from "../src/node";

async function main () {
async function main() {
// const r = await $fetch<string>('http://google.com/404')
const r = await $fetch<string>("http://httpstat.us/500");
// const r = await $fetch<string>('http://httpstat/500')
Expand Down
Loading

0 comments on commit aabfb9a

Please sign in to comment.