refactor: 优化eslint配置,提升代码质量 (#1341)
* feat: 统一并标准化eslint * lint: napcat.webui * lint: napcat.webui * lint: napcat.core * build: fix * lint: napcat.webui * refactor: 重构eslint * Update README.md
This commit is contained in:
1 parent
c9b1d3fafa
commit
2185a884b4
651 files changed
+37978
-37584
No files matched your search
@@ -2,30 +2,30 @@ import { PacketContext } from '@/core/packet/context/packetContext';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
export class PacketClientSession {
|
||||
private readonly context: PacketContext;
|
||||
private readonly context: PacketContext;
|
||||
|
||||
constructor(core: NapCatCore) {
|
||||
this.context = new PacketContext(core);
|
||||
}
|
||||
constructor (core: NapCatCore) {
|
||||
this.context = new PacketContext(core);
|
||||
}
|
||||
|
||||
init(pid: number, recv: string, send: string): Promise<void> {
|
||||
return this.context.client.init(pid, recv, send);
|
||||
}
|
||||
init (pid: number, recv: string, send: string): Promise<void> {
|
||||
return this.context.client.init(pid, recv, send);
|
||||
}
|
||||
|
||||
get clientLogStack() {
|
||||
return this.context.client.clientLogStack;
|
||||
}
|
||||
get clientLogStack () {
|
||||
return this.context.client.clientLogStack;
|
||||
}
|
||||
|
||||
get available() {
|
||||
return this.context.client.available;
|
||||
}
|
||||
get available () {
|
||||
return this.context.client.available;
|
||||
}
|
||||
|
||||
get operation() {
|
||||
return this.context.operation;
|
||||
}
|
||||
get operation () {
|
||||
return this.context.operation;
|
||||
}
|
||||
|
||||
// TODO: global message element adapter (?
|
||||
get msgConverter() {
|
||||
return this.context.msgConverter;
|
||||
}
|
||||
// TODO: global message element adapter (?
|
||||
get msgConverter () {
|
||||
return this.context.msgConverter;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user