Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 5, 2024
1 parent e5817b1 commit 17e9d5e
Show file tree
Hide file tree
Showing 4 changed files with 253 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _demo/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ const { auth } = useHub()
</h3>
<UButton
v-if="!auth.user"
@click="auth.loginWith('github')"
icon="i-simple-icons-github"
label="Login with GitHub"
color="black"
external
@click="auth.loginWith('github')"
/>
<div v-else class="space-x-2">
<UButton
Expand Down
5 changes: 2 additions & 3 deletions _demo/server/api/db-test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { sql, eq } from 'drizzle-orm'
import { sqliteTable, integer, text } from 'drizzle-orm/sqlite-core'

export default defineEventHandler(async (event) => {
export default defineEventHandler(async () => {
const db = useDatabase()

const tables = await db.all(sql`
Expand All @@ -27,7 +26,7 @@ export default defineEventHandler(async (event) => {
// const deleted = await db.delete(todos).where(eq(todos.id, all[0].id))

return {
// tables,
tables,
// todo,
// inserted,
// updated,
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"build": "nuxi build --preset cloudflare_pages _demo",
"preview": "nuxt preview _dmeo",
"lint": "eslint .",
"logs": "wrangler pages deployment tail"
"logs": "wrangler pages deployment tail",
"prepublishOnly": "pnpm lint",
"release": "release-it"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20240129.0",
Expand All @@ -33,6 +35,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.2.0",
"eslint": "^8.56.0",
"release-it": "^17.0.3",
"typescript": "^5.3.3",
Expand Down
246 changes: 246 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 17e9d5e

Please sign in to comment.