Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jul 12, 2022
1 parent 86b8592 commit 8ebcc68
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extends:
- '@bangbang93/recommended'
parser: '@typescript-eslint/parser'
parserOptions:
project: './tsconfig.eslint.json'
2 changes: 1 addition & 1 deletion src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {sum} from 'lodash'
import {Container, Inject, Service} from 'typedi'
import {ProxyServer} from './proxy-server'

const handlers = new Map<number, Function>()
const handlers = new Map<number, (...args: unknown[]) => unknown>()

interface IClusterRpc {
getOnline(name: string): Promise<number>
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class BlockList {
}

class Messages {
@IsOptional() @IsString() public bannedUsername: string = "未授权用户"
@IsOptional() @IsString() public bannedUUID: string = "未授权用户"
@IsOptional() @IsString() public bannedUsername: string = '未授权用户'
@IsOptional() @IsString() public bannedUUID: string = '未授权用户'
}

export class Config {
Expand Down

0 comments on commit 8ebcc68

Please sign in to comment.