fix: add no-new-array rule (#5117)

This commit is contained in:
LongYinan
2023-11-29 04:44:06 +00:00
parent 68caf5027d
commit cb2c659f52
6 changed files with 73 additions and 56 deletions

View File

@@ -3,7 +3,7 @@ export const TRACE_ID_BYTES = 16;
export const TRACE_VERSION = '00';
export const TRACE_FLAG = '01';
const BytesBuffer = new Array(32);
const BytesBuffer = Array.from<number>({ length: 32 });
type TraceSpan = {
name: string;