feat: add async suffix eslint rule (#485)
This commit is contained in:
1 parent
5723295856
commit
dcaff1d91c
60 files changed
+296
-225
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import bcrypt from "bcrypt";
|
||||
|
||||
export const createSalt = async () => {
|
||||
export const createSaltAsync = async () => {
|
||||
return bcrypt.genSalt(10);
|
||||
};
|
||||
|
||||
export const hashPassword = async (password: string, salt: string) => {
|
||||
export const hashPasswordAsync = async (password: string, salt: string) => {
|
||||
return bcrypt.hash(password, salt);
|
||||
};
|
||||
Reference in new issue
Block a user