Add biome and autofix
This commit is contained in:
parent
0036079c75
commit
ba73b0a1f7
10 changed files with 350 additions and 318 deletions
31
biome.json
Normal file
31
biome.json
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"vcs": {
|
||||
"enabled": false,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": true
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false,
|
||||
"ignore": ["dist", ".next", "public", "*.d.ts", "*.json"]
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2
|
||||
},
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "double"
|
||||
}
|
||||
}
|
||||
}
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
@ -15,6 +15,7 @@
|
|||
],
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^1.9.4",
|
||||
"@types/bun": "latest",
|
||||
"bun-plugin-dts": "^0.2.3"
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ManagedSocketErrorType, SocketDisconnectCode } from "./constants";
|
||||
import { ManagedSocketError } from "./errors";
|
||||
import { SocketSpeak } from "./messages";
|
||||
import { SocketDisconnectCode, ManagedSocketErrorType } from "./constants";
|
||||
import { ManagedSocket } from "./managed-socket";
|
||||
import { SocketSpeak } from "./messages";
|
||||
|
||||
export {
|
||||
SocketSpeak,
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { ManagedSocketErrorType, NON_RECONNECT_CODES } from "./constants";
|
||||
import { ManagedSocketError } from "./errors";
|
||||
import {
|
||||
parseAnyScoketMessage,
|
||||
type SerializedSocketMessage,
|
||||
type SocketDataMessage,
|
||||
type SocketHeartbeatMessage,
|
||||
type SocketMessage,
|
||||
parseAnyScoketMessage,
|
||||
} from "./types";
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue