chore: strengthen backend eslint profile
This commit is contained in:
@@ -28,9 +28,10 @@ class EmailConstraint {
|
||||
character.charCodeAt(0) < ASCII_SPACE ||
|
||||
character.charCodeAt(0) === ASCII_DELETE,
|
||||
) &&
|
||||
value.split('@').every(Boolean)
|
||||
value.split('@').every(Boolean)
|
||||
);
|
||||
}
|
||||
|
||||
defaultMessage(): string {
|
||||
return 'must be a valid email address';
|
||||
}
|
||||
@@ -44,6 +45,7 @@ class PasswordBytesConstraint {
|
||||
Buffer.byteLength(value, 'utf8') <= MAX_PASSWORD_BYTES
|
||||
);
|
||||
}
|
||||
|
||||
defaultMessage(): string {
|
||||
return 'must not exceed 72 UTF-8 bytes';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user