Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Mokevnin <mokevnin@gmail.com>
  • Loading branch information
mokevnin committed Aug 29, 2024
1 parent 0a31fcf commit 50f4126
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test
# - run: make lint
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ export default [
},
stylistic.configs['recommended-flat'],
pluginJs.configs.recommended,
{
rules: {
'no-unused-vars': 'off',
},
ignores: ['schema.js'], // is now working
},
]
1 change: 0 additions & 1 deletion models/Course.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import vine from '@vinejs/vine'
import uniqueRule from '../rules/unique.js'
import { courses } from '../db/schema.js'
import { drizzle } from 'drizzle-orm/better-sqlite3'
import * as schemas from '../db/schema.js'
Expand Down
5 changes: 2 additions & 3 deletions routes/api/tokens.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { and, asc, eq } from 'drizzle-orm'
import { schema } from '../../schema.js'

/**
Expand All @@ -20,8 +19,8 @@ export default async function (fastify) {
},
},
},
async (request, reply) => {
const client = await fastify.db.query.users.findFirst()
async (_request, reply) => {
const client = await db.query.users.findFirst()
fastify.assert.ok(client)
const token = fastify.jwt.sign({ user: { id: client.id } })
return reply.code(201)
Expand Down

0 comments on commit 50f4126

Please sign in to comment.