Skip to content

Commit

Permalink
fix: several lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Apr 1, 2024
1 parent ba43e6c commit 2589d0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function apply(ctx: Context, config: Config): Promise<void> {
ctx.plugin(Search)

// remove obsolete `aliases` configuration
if (typeof (ctx.config as any).aliases !== 'undefined') {
if (typeof (ctx.config as { aliases?: string[] }).aliases !== 'undefined') {
ctx.setTimeout(() => {
ctx.scope.update(omit(ctx.config, 'aliases'))
}, 0)
Expand Down
1 change: 1 addition & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import { Context } from 'koishi'

export function apply(ctx: Context) {
Expand Down

0 comments on commit 2589d0d

Please sign in to comment.