mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
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:
parent
9e46872ea3
commit
a5b7410497
12 changed files with 34 additions and 34 deletions
|
@ -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))
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue