chore: unblock pre-commit lint hook

This commit is contained in:
Linus Rath
2026-05-13 00:34:35 +02:00
parent ea424cad7e
commit b46a1a69e8
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -45,6 +45,7 @@ export default [
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-unused-vars": "off",
"no-undef": "off",
},
settings: {
react: {
+2
View File
@@ -9,7 +9,9 @@ export interface ParsedMailto {
const MAX_RECIPIENTS = 200;
const MAX_SUBJECT_LENGTH = 998;
const MAX_BODY_LENGTH = 64 * 1024;
// eslint-disable-next-line no-control-regex
const CONTROL_CHARS = /[\u0000-\u001F\u007F]/g;
// eslint-disable-next-line no-control-regex
const CONTROL_CHARS_EXCEPT_LINE_BREAKS = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g;
function stripControlChars(value: string): string {
+1
View File
@@ -5,6 +5,7 @@ export interface ParsedWebcal {
}
function stripControlChars(value: string): string {
// eslint-disable-next-line no-control-regex
return value.replace(/[\u0000-\u001F\u007F]/g, "").trim();
}