Using JSHint with Express.js / 'delete' (a reserved word)
express, gruntjs, javascript, jshint, node.js
Solution
In Express.js, use `del` instead of `delete`.
app.del('/api/users/:userid', function deleteUser(req, res, next)
Problem
I'm using Express.js ontop of Node.js to create RESTful API, and using grunt to watch my files and automatically lint my JavaScript. Every time I use the delete function, it gets flagged by JSHint: ``` [L218:C9] Expected an identifier and instead saw 'delete' (a reserved word). app.delete('/api/users/:userid', function deleteUser(req, res, next) { ``` I understand that 'delete' is a reserved word, but it's chosen by Express.js! Is there a better way to go about linting my Express.js app? Any way to turn off this check??