diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..849ddff --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +dist/ diff --git a/.eslintrc.yml b/.eslintrc.yml index 98cc5ef..3cecd58 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,3 +1,5 @@ extends: - '@bangbang93/recommended' parser: '@typescript-eslint/parser' +parserOptions: + project: './tsconfig.eslint.json' diff --git a/src/cluster.ts b/src/cluster.ts index f728efe..4c9107b 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -4,7 +4,7 @@ import {sum} from 'lodash' import {Container, Inject, Service} from 'typedi' import {ProxyServer} from './proxy-server' -const handlers = new Map() +const handlers = new Map unknown>() interface IClusterRpc { getOnline(name: string): Promise diff --git a/src/config.ts b/src/config.ts index fa6dec6..e3cf6e4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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 {