Skip to content

Commit 96fad4b

Browse files
committed
lint
1 parent f1864b8 commit 96fad4b

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ jobs:
1414
with:
1515
version: 10
1616
- run: pnpm install
17+
- run: pnpm lint
1718
- run: pnpm build
1819
- run: pnpm test

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import js from "@eslint/js";
22
import globals from "globals";
33
import tseslint from "typescript-eslint";
4-
import { defineConfig } from "eslint/config";
4+
import { defineConfig, globalIgnores } from "eslint/config";
55

66

77
export default defineConfig([
88
{ files: ["**/*.{ts}"], plugins: { js }, extends: ["js/recommended"] },
99
{ files: ["**/*.{ts}"], languageOptions: { globals: globals.node } },
1010
tseslint.configs.recommended,
11+
globalIgnores(['dist']),
1112
{
1213
rules: {
1314
'@typescript-eslint/naming-convention': [

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"node": ">=20.0.0"
99
},
1010
"scripts": {
11-
"test": "jest",
11+
"lint": "eslint",
1212
"build": "tsc",
13+
"test": "jest",
1314
"prepack": "pnpm build"
1415
},
1516
"repository": {

src/query/response/server-sent-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function parseServerSentEvents(buffer: string, flush?: boolean): { events: Serve
6767
remainingBuffer = sseChunks.pop() ?? "";
6868
}
6969

70-
let events: ServerSentEvent[] = [];
70+
const events: ServerSentEvent[] = [];
7171

7272
for (const chunk of sseChunks) {
7373
const lines = chunk.split(/\r?\n/);

0 commit comments

Comments
 (0)