controllers/product/editProduct.js
Function editProduct
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function editProduct(req, res) {
const { errors, isValid } = validateProductData(req.body);
const productId = req.params.product_id;
if (!isValid) {
Parsing error: Invalid ecmaVersion. Open
Open
const Product = require('../../models/product');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/