Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 77d7a5e

Browse files
TheDancingCodeeddiemoore
authored andcommitted
Add ESLint (#93)
1 parent 625807c commit 77d7a5e

File tree

5 files changed

+1709
-795
lines changed

5 files changed

+1709
-795
lines changed

.eslintrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"mocha": true
5+
},
6+
"globals": {
7+
"expect": true
8+
},
9+
"extends": ["eslint:recommended", "prettier"],
10+
"rules": {
11+
"no-console": "off",
12+
"no-empty": ["error", { "allowEmptyCatch": true }]
13+
}
14+
}

lib/codecov.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ var sendToCodecovV2 = function(
156156
Accept: 'text/plain',
157157
},
158158
},
159-
function(err, response, result) {
159+
function(err, response) {
160160
if (err || response.statusCode !== 200) {
161161
console.log(' ' + (err || response.body))
162162
return response
@@ -210,7 +210,7 @@ var sendToCodecovV3 = function(
210210
'x-amz-acl': 'public-read',
211211
},
212212
},
213-
function(err, response, result) {
213+
function(err) {
214214
if (err) {
215215
sendToCodecovV2(
216216
codecov_endpoint,

0 commit comments

Comments
 (0)