mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
eslint version bump
This commit is contained in:
parent
73572b0839
commit
c4e5cb71b4
3 changed files with 8 additions and 2 deletions
|
@ -212,6 +212,10 @@ rules:
|
|||
|
||||
# doesn't always make sense
|
||||
consistent-return: 0
|
||||
no-sequences: 0
|
||||
|
||||
# fails defensive semicolons
|
||||
no-space-before-semi: 0
|
||||
|
||||
new-parens: 1
|
||||
no-alert: 1
|
||||
|
|
|
@ -123,7 +123,9 @@ module.exports.log_and_etagify = function(req, res, next) {
|
|||
if (_auth) req.headers.authorization = _auth
|
||||
|
||||
var bytesin = 0
|
||||
req.on('data', function(chunk){ bytesin += chunk.length })
|
||||
req.on('data', function(chunk) {
|
||||
bytesin += chunk.length
|
||||
})
|
||||
|
||||
var _send = res.send
|
||||
res.send = function(body) {
|
||||
|
|
|
@ -37,7 +37,7 @@ devDependencies:
|
|||
mocha: '>= 1.17.0'
|
||||
|
||||
# linting tools
|
||||
eslint: '>= 0.4.2'
|
||||
eslint: '>= 0.6'
|
||||
|
||||
# for debugging memory leaks, it'll be require()'d if
|
||||
# installed, but I don't want it to be installed everytime
|
||||
|
|
Loading…
Add table
Reference in a new issue