Add ESLint no-unused-vars rule

- Uses `.eslintrc.yaml` for configuration
- `npm run lint` is part of `npm test`

PR-URL: https://github.com/nodejs/node-gyp/pull/1497
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: João Reis <reis@janeasystems.com>
This commit is contained in:
Jon Moss 2018-08-02 18:12:08 -04:00 committed by Rod Vagg
parent 9e46872ea3
commit a5b7410497
No known key found for this signature in database
GPG key ID: C273792F7D83545D
12 changed files with 34 additions and 34 deletions

View file

@ -88,7 +88,7 @@ test('find python - python too old', function (t) {
}
f.checkPython()
function done(err, python) {
function done(err) {
t.ok(/is not supported by gyp/.test(err))
}
})
@ -108,7 +108,7 @@ test('find python - python too new', function (t) {
}
f.checkPython()
function done(err, python) {
function done(err) {
t.ok(/is not supported by gyp/.test(err))
}
})
@ -123,7 +123,7 @@ test('find python - no python', function (t) {
}
f.checkPython()
function done(err, python) {
function done(err) {
t.ok(/Can't find Python executable/.test(err))
}
})
@ -170,7 +170,7 @@ test('find python - no python2, no python, unix', function (t) {
}
f.checkPython()
function done(err, python) {
function done(err) {
t.ok(/Can't find Python executable/.test(err))
}
})
@ -271,7 +271,7 @@ test('find python - python 3, use python launcher, python 2 too old',
}
f.checkPython()
function done(err, python) {
function done(err) {
t.ok(/is not supported by gyp/.test(err))
}
})
@ -333,7 +333,7 @@ test('find python - no python, no python launcher, bad guess', function (t) {
}
f.checkPython()
function done(err, python) {
function done(err) {
t.ok(/Can't find Python executable/.test(err))
}
})