controllers/user/register.js
Function register
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const register = async (req, res, next) => {
try {
const userDetails = req.body;
const salt = bcrypt.genSaltSync(10);
Parsing error: Invalid ecmaVersion. Open
Open
const bcrypt = require('bcrypt');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/