mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 07:04:45 +00:00
fix: make pre-commit hook fail on lint warnings, fix template literal warnings
- Add --error-on-warnings to biome check in root and web-ui package.json - Convert string concatenation to template literals in daxnuts.ts - Convert string concatenation to template literals in test file Fixes #1103
This commit is contained in:
parent
7eae0a7d30
commit
1bd68327f3
4 changed files with 5 additions and 5 deletions
|
|
@ -76,7 +76,7 @@ describe("Bug regression: isImageLine() crash with image escape sequences", () =
|
|||
"Suffix text \x1b_Ga=T,data...\x1b\\ suffix",
|
||||
"Middle \x1b_Ga=T,data...\x1b\\ more text",
|
||||
// Very long line (simulating 300KB+ crash scenario)
|
||||
"Text before " + "\x1b_Ga=T,f=100" + "A".repeat(300000) + " text after",
|
||||
`Text before \x1b_Ga=T,f=100${"A".repeat(300000)} text after`,
|
||||
];
|
||||
|
||||
for (const line of scenarios) {
|
||||
|
|
@ -93,7 +93,7 @@ describe("Bug regression: isImageLine() crash with image escape sequences", () =
|
|||
"Suffix text \x1b]1337;File=inline=1:data==\x07 suffix",
|
||||
"Middle \x1b]1337;File=inline=1:data==\x07 more text",
|
||||
// Very long line (simulating 304KB crash scenario)
|
||||
"Text before " + "\x1b]1337;File=size=800,600;inline=1:" + "B".repeat(300000) + " text after",
|
||||
`Text before \x1b]1337;File=size=800,600;inline=1:${"B".repeat(300000)} text after`,
|
||||
];
|
||||
|
||||
for (const line of scenarios) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue