controllers/changeRequest/getChangeRequests.js
Function getChangeRequestById
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getChangeRequestById = async (req, res, next) => {
try {
const changeRequest = await models.ChangeRequest.findOne({
_id: req.params.id
}).lean();
Function getAllChangeRequests
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getAllChangeRequests = async (req, res, next) => {
try {
const nonRequestedDataFields = {
requested_changes: false
};
Parsing error: Invalid ecmaVersion. Open
Open
/* eslint-disable camelcase */
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/