diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c680373..0c2f4c7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -16,3 +16,4 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm test + # - run: make lint diff --git a/eslint.config.js b/eslint.config.js index 3b8451c..1a1f53a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -11,4 +11,10 @@ export default [ }, stylistic.configs['recommended-flat'], pluginJs.configs.recommended, + { + rules: { + 'no-unused-vars': 'off', + }, + ignores: ['schema.js'], // is now working + }, ] diff --git a/models/Course.js b/models/Course.js index 8b718f2..b7aeec1 100644 --- a/models/Course.js +++ b/models/Course.js @@ -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' diff --git a/routes/api/tokens.js b/routes/api/tokens.js index 0deda12..6b8ce5b 100644 --- a/routes/api/tokens.js +++ b/routes/api/tokens.js @@ -1,4 +1,3 @@ -import { and, asc, eq } from 'drizzle-orm' import { schema } from '../../schema.js' /** @@ -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)