mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 03:03:06 -05:00
feat(tools): ignore no-unused-vars on underscore (#48386)
This commit is contained in:
@@ -24,8 +24,7 @@ const isDev = process.env.FREECODECAMP_NODE_ENV !== 'production';
|
||||
|
||||
export default function prodErrorHandler() {
|
||||
// error handling in production.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
return function (err, req, res, next) {
|
||||
return function (err, req, res, _next) {
|
||||
// response for when req.body is bigger than body-parser's size limit
|
||||
if (err?.type === 'entity.too.large') {
|
||||
return res.status('413').send('Request payload is too large');
|
||||
|
||||
Reference in New Issue
Block a user