Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 17, 2023
1 parent 6178c4a commit 2eb6bff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "cd server && pnpm dev",
"build": "cd server && pnpm build",
"lint": "eslint --ext .ts,.js,.mjs,.cjs .",
"lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier -c .",
"lint:fix": "eslint --fix --ext .ts,.js,.mjs,.cjs . && prettier -w .",
"release": "pnpm test && changelogen --release && git push --follow-tags && pnpm publish",
"test": "pnpm lint"
},
Expand Down
2 changes: 1 addition & 1 deletion server/routes/users/find/[query].ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default eventHandler(async (event) => {
params: { q: event.context.params.query },
});

if (!res.items.length) {
if (res.items.length === 0) {
throw createError({
statusCode: 404,
statusMessage: "User Not Found",
Expand Down
2 changes: 1 addition & 1 deletion server/utils/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ghRepoFiles = cachedFunction((repo: string, ref: string) => {
}, cacheOptions("files"));

export const ghMarkdown = cachedFunction(
(markdown: string, repo: string, _id: string) => {
(markdown: string, repo: string /*, _id: string */) => {
return ghFetch("/markdown", {
method: "POST",
headers: {
Expand Down

0 comments on commit 2eb6bff

Please sign in to comment.