diff --git a/clients/tabby-chat-panel/eslint.config.js b/clients/tabby-chat-panel/eslint.config.js index 3b614a0df434..fe05ab72be8b 100644 --- a/clients/tabby-chat-panel/eslint.config.js +++ b/clients/tabby-chat-panel/eslint.config.js @@ -1,3 +1,7 @@ import antfu from '@antfu/eslint-config' -export default antfu() +export default antfu({ + rules: { + curly: ['off', 'all'], + }, +}) diff --git a/clients/tabby-chat-panel/package.json b/clients/tabby-chat-panel/package.json index e95be6bf8515..f717ca65cf92 100644 --- a/clients/tabby-chat-panel/package.json +++ b/clients/tabby-chat-panel/package.json @@ -33,8 +33,8 @@ "scripts": { "build": "unbuild", "dev": "unbuild --stub", - "lint": "eslint . -f mo", - "lint:fix": "eslint . -f mo --fix", + "lint": "eslint .", + "lint:fix": "eslint . --fix", "prepack": "nr build", "preview": "node --watch bin/index.js", "release": "bumpp && npm publish", @@ -42,8 +42,8 @@ "test": "vitest run", "test:watch": "vitest", "typecheck": "tsc --noEmit", - "build:vscode": "yarn && esbuild src/vscode.tsx --bundle --minify --outfile=../vscode/chat-panel/index.js --loader:.js=jsx", - "dev:vscode": "esbuild src/vscode.tsx --bundle --outfile=../vscode/chat-panel/index.js --loader:.js=jsx --watch" + "build:vscode": "esbuild src/iframe.tsx --bundle --minify --outfile=../vscode/chat-panel/index.js --loader:.js=jsx", + "dev:vscode": "esbuild src/iframe.tsx --bundle --outfile=../vscode/chat-panel/index.js --loader:.js=jsx --watch" }, "dependencies": { "@quilted/threads": "^2.1.2", @@ -60,6 +60,7 @@ "eslint": "^9.1.1", "eslint-formatter-mo": "^1.2.0", "lint-staged": "^15.2.2", + "prettier": "^3.2.5", "rimraf": "^5.0.5", "tsx": "^4.7.3", "typescript": "^5.4.5", diff --git a/clients/tabby-chat-panel/src/vscode.tsx b/clients/tabby-chat-panel/src/iframe.tsx similarity index 96% rename from clients/tabby-chat-panel/src/vscode.tsx rename to clients/tabby-chat-panel/src/iframe.tsx index 9f3acbbe5665..2c26588419e0 100644 --- a/clients/tabby-chat-panel/src/vscode.tsx +++ b/clients/tabby-chat-panel/src/iframe.tsx @@ -30,8 +30,8 @@ function ChatPanel() { if (iframeRef?.current && token) { client?.init({ fetcherOptions: { - authorization: token - } + authorization: token, + }, }) } }, [iframeRef?.current, client, token]) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39bb6dcd0b47..b43ea0b1f8e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -239,6 +239,9 @@ importers: lint-staged: specifier: ^15.2.2 version: 15.2.4 + prettier: + specifier: ^3.2.5 + version: 3.2.5 rimraf: specifier: ^5.0.5 version: 5.0.7