Housekeeping + Make ESLint Happy

This commit is contained in:
SukkaW
2024-09-05 22:22:28 +08:00
parent f07cf055e5
commit ae732735ef
5 changed files with 272 additions and 185 deletions

View File

@@ -63,7 +63,7 @@ export class TextLineStream extends TransformStream<string, string> {
},
flush(controller) {
if (__buf.length > 0) {
// eslint-disable-next-line sukka-ts/string/prefer-string-starts-ends-with -- performance
// eslint-disable-next-line sukka/string/prefer-string-starts-ends-with -- performance
if (allowCR && __buf[__buf.length - 1] === '\r') {
controller.enqueue(__buf.slice(0, -1));
} else {