Use Prettier JS (#5017)

* Adds prettier

* Run lint before tests
This commit is contained in:
Florent Vilmart
2018-09-01 13:58:06 -04:00
committed by GitHub
parent 189cd259ee
commit d83a0b6808
240 changed files with 41098 additions and 29020 deletions

View File

@@ -4,7 +4,9 @@ var bcrypt = require('bcryptjs');
try {
bcrypt = require('bcrypt');
} catch(e) { /* */ }
} catch (e) {
/* */
}
// Returns a promise for a hashed password string.
function hash(password) {
@@ -23,5 +25,5 @@ function compare(password, hashedPassword) {
module.exports = {
hash: hash,
compare: compare
compare: compare,
};