Add biome and autofix

This commit is contained in:
Endeavorance 2025-01-07 15:00:22 -05:00
parent 0036079c75
commit ba73b0a1f7
10 changed files with 350 additions and 318 deletions

31
biome.json Normal file
View 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

Binary file not shown.

View file

@ -15,6 +15,7 @@
], ],
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/bun": "latest", "@types/bun": "latest",
"bun-plugin-dts": "^0.2.3" "bun-plugin-dts": "^0.2.3"
}, },

View file

@ -1,7 +1,7 @@
import { ManagedSocketErrorType, SocketDisconnectCode } from "./constants";
import { ManagedSocketError } from "./errors"; import { ManagedSocketError } from "./errors";
import { SocketSpeak } from "./messages";
import { SocketDisconnectCode, ManagedSocketErrorType } from "./constants";
import { ManagedSocket } from "./managed-socket"; import { ManagedSocket } from "./managed-socket";
import { SocketSpeak } from "./messages";
export { export {
SocketSpeak, SocketSpeak,

View file

@ -1,11 +1,11 @@
import { ManagedSocketErrorType, NON_RECONNECT_CODES } from "./constants"; import { ManagedSocketErrorType, NON_RECONNECT_CODES } from "./constants";
import { ManagedSocketError } from "./errors"; import { ManagedSocketError } from "./errors";
import { import {
parseAnyScoketMessage,
type SerializedSocketMessage, type SerializedSocketMessage,
type SocketDataMessage, type SocketDataMessage,
type SocketHeartbeatMessage, type SocketHeartbeatMessage,
type SocketMessage, type SocketMessage,
parseAnyScoketMessage,
} from "./types"; } from "./types";
/** /**