fix eslint config

This commit is contained in:
2018-05-16 23:11:01 +03:00
parent 627e99f312
commit b6a9bc4985
2 changed files with 1 additions and 2 deletions

View File

@@ -9,6 +9,6 @@
} }
], ],
"no-console": "off", "no-console": "off",
"no-underscore-dangle": ["on", { "allow": ["_id"] }] "no-underscore-dangle": ["warn", { "allow": ["_id"] }]
} }
} }

1
app.js
View File

@@ -44,7 +44,6 @@ app.use((req, res) => {
}); });
// handle errors // handle errors
app.use((err, req, res, next) => { app.use((err, req, res, next) => {
if (err.name === 'ValidationError') { if (err.name === 'ValidationError') {
res.status(400); res.status(400);