Skip to content

Commit

Permalink
Merge pull request #506 from nyaggah/feat/publish-update
Browse files Browse the repository at this point in the history
chore(lint-format): biome ignore response/error types
  • Loading branch information
JoeyDoey authored Jul 30, 2024
2 parents b1359ed + 62a0abc commit 38a073a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
14 changes: 3 additions & 11 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
"bedframe": "./dist/bedframe.js",
"create-bedframe": "./dist/create-bedframe.js"
},
"files": [
"/dist",
"/stubs",
"package.json"
],
"files": ["/dist", "/stubs", "package.json"],
"scripts": {
"clean": "shx rm -rf dist",
"build": "pnpm clean && tsc && rollup -c",
Expand Down Expand Up @@ -72,9 +68,7 @@
"typescript": "^5.5.2"
},
"lint-staged": {
"*.{md,mdx,css,html,json,js}": [
"pnpm biome format --write ."
],
"*.{md,mdx,css,html,json,js}": ["pnpm biome format --write ."],
"*.{js,jsx,ts,tsx}": "pnpm biome lint --apply ."
},
"prettier": {
Expand All @@ -83,9 +77,7 @@
"singleQuote": true
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
"extends": ["@commitlint/config-conventional"]
},
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ async function getEdgeAccessToken(config: EdgeUploadConfig): Promise<string> {
}

try {
// biome-ignore lint: @typescript-eslint/no-explicit-any
const responseBody: any = await response.json()
return responseBody.access_token
// biome-ignore lint: @typescript-eslint/no-explicit-any
} catch (jsonError: any) {
throw new Error(`Error parsing JSON response: ${jsonError.message}`)
}
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/src/lib/make/utils/write-package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ ${
"@commitlint/config-conventional": "^19.1.0",`
: ''
}${
hasTests
? `\n"@testing-library/jest-dom": "^6.4.2",
hasTests
? `\n"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.2",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"happy-dom": "^14.3.6",
"vitest": "^1.4.0",
"@vitest/coverage-istanbul": "^1.4.0",`
: ''
}
: ''
}
"@types/node": "^20.11.30",
"@types/chrome": "^0.0.263",
"@types/react": "^18.2.69",
Expand Down

0 comments on commit 38a073a

Please sign in to comment.