controllers/farmer/statistics.js
Function getStatistics
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getStatistics = async (req, res, next) => {
try {
const allFarmers = await models.Farmer.find({ archived: false });
const totalNumOfFarmers = allFarmers.length;
Parsing error: Invalid ecmaVersion. Open
Open
const { models } = require('../../models');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/