diff --git a/.eslintrc.json b/.eslintrc.json index 9fccfec..f9b22b7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,8 +9,6 @@ "@typescript-eslint" ], "rules": { - "no-unused-vars": "warn", - "no-unused-expressions": "warn", "@typescript-eslint/naming-convention": "warn", "@typescript-eslint/semi": "warn", "curly": "warn", diff --git a/src/toolwrapper/devchat.ts b/src/toolwrapper/devchat.ts index a4e6469..f458f6b 100644 --- a/src/toolwrapper/devchat.ts +++ b/src/toolwrapper/devchat.ts @@ -208,12 +208,11 @@ class DevChat { const { exitCode: code, stdout, stderr } = await this.commandRun.spawnAsync(devChat, args, spawnAsyncOptions, onStdoutPartial, undefined, undefined, undefined); if (stderr) { - const errorMessage = stderr.trim().match(/Error:(.+)/)?.[1]; return { "prompt-hash": "", user: "", date: "", - response: errorMessage ? `Error: ${errorMessage}` : "Unknown error", + response: stderr, isError: true, }; } diff --git a/tsconfig.json b/tsconfig.json index 6795f85..525d19d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,9 +12,7 @@ "rootDir": "src", "strict": true, "jsx": "react", - "esModuleInterop": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "esModuleInterop": true }, "exclude": ["test"] } \ No newline at end of file