From b6a9bc4985981178ef0dcbe12318debf6324116c Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Wed, 16 May 2018 23:11:01 +0300 Subject: [PATCH] fix eslint config --- .eslintrc.json | 2 +- app.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5aa5c53..a820283 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,6 +9,6 @@ } ], "no-console": "off", - "no-underscore-dangle": ["on", { "allow": ["_id"] }] + "no-underscore-dangle": ["warn", { "allow": ["_id"] }] } } diff --git a/app.js b/app.js index bfe0a08..6273ae6 100644 --- a/app.js +++ b/app.js @@ -44,7 +44,6 @@ app.use((req, res) => { }); // handle errors - app.use((err, req, res, next) => { if (err.name === 'ValidationError') { res.status(400);