Skip to content

Commit 54bc20c

Browse files
committed
chore(quality): migrate workspace linting to eslint 9
- Integrates: replaces the legacy /Users/ganesh/Downloads/Coding/2026/authkit/.eslintrc.cjs setup with /Users/ganesh/Downloads/Coding/2026/authkit/eslint.config.mjs, switches /Users/ganesh/Downloads/Coding/2026/authkit/app/dashboard/package.json off deprecated next lint, adds /Users/ganesh/Downloads/Coding/2026/authkit/packages/express/src/express.d.ts for request augmentation, and fixes workspace lint findings across server, CLI, React, Angular, and Nodemailer packages. - Security/Behavior: restores lint as a working quality gate on ESLint 9 without weakening the main TypeScript rules, keeps test-only type import patterns scoped to tests, and moves Express request augmentation into declaration space instead of runtime source. - Validation: pnpm lint; pnpm typecheck.
1 parent 77196a0 commit 54bc20c

36 files changed

Lines changed: 129 additions & 76 deletions

.eslintrc.cjs

Lines changed: 0 additions & 32 deletions
This file was deleted.

app/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "next dev",
88
"build": "next build",
99
"start": "next start",
10-
"lint": "next lint",
10+
"lint": "eslint src --ext .ts,.tsx",
1111
"typecheck": "tsc -p tsconfig.json --noEmit",
1212
"test": "vitest run",
1313
"clean": "rm -rf .next"

app/server/src/adapters/db/drizzle-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
sql,
1010
} from 'drizzle-orm'
1111

12-
import type { DatabaseAdapter } from '../../types/adapters'
1312
import type { AuthKitDatabase } from '../../db'
1413
import {
1514
auditLogs,
@@ -23,6 +22,7 @@ import {
2322
webhookDeliveries,
2423
webhookEndpoints,
2524
} from '../../db/schema'
25+
import type { DatabaseAdapter } from '../../types/adapters'
2626
import type {
2727
AuditLog,
2828
OAuthAccount,

app/server/src/db/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { drizzle, type NodePgDatabase } from 'drizzle-orm/node-postgres'
22
import { Pool, type PoolConfig } from 'pg'
33

44
import type { AppConfig } from '../config'
5+
56
import * as schema from './schema'
67

78
export type AuthKitDatabase = NodePgDatabase<typeof schema>

app/server/src/db/migrate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { migrate } from 'drizzle-orm/node-postgres/migrator'
22

33
import { config } from '../config'
4+
45
import { createDatabaseClient } from './index'
56

67
async function runMigrations(): Promise<void> {

app/server/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { buildServer } from './index'
21
import { config } from './config'
32

3+
import { buildServer } from './index'
4+
45
const start = async (): Promise<void> => {
56
const server = await buildServer()
67
await server.listen({ host: config.host, port: config.port })

app/server/src/modules/auth/reset-password.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { z } from 'zod'
33

44
import { generateTokenHash, hashPassword } from '../../utils/crypto'
55
import { Errors } from '../../utils/errors'
6+
67
import { evaluatePasswordPolicy } from './password-policy'
78

89
const resetPasswordBodySchema = z.object({

app/server/src/modules/auth/signup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
issueRefreshToken,
1313
setRefreshTokenCookie,
1414
} from '../../utils/tokens'
15+
1516
import { evaluatePasswordPolicy } from './password-policy'
1617

1718
const signupBodySchema = z.object({

app/server/src/modules/email/service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { EmailAdapter, EmailMessage } from '../../types/adapters'
2+
23
import {
34
renderEmailTemplate,
45
type EmailTemplateInput,

app/server/src/modules/management/operations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { FastifyReply, FastifyRequest } from 'fastify'
22
import { z } from 'zod'
33

44
import { AuthKitError } from '../../utils/errors'
5+
56
import { requireManagementSecret, requireProjectIdHeader } from './auth'
67

78
const listSessionsQuerySchema = z.object({

0 commit comments

Comments
 (0)