Skip to content

Commit fc442e3

Browse files
committed
Fix lint warnings
1 parent 909ae88 commit fc442e3

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ module.exports = {
1717
sourceType: 'module',
1818
},
1919
rules: {
20-
'no-console': ['error', { allow: ['error'] }],
20+
'no-console': ['error', { allow: ['error', 'time', 'timeEnd'] }],
2121
},
2222
}

lib/operators.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function seekFirstRecp(buffer, start, p) {
5555
if (p < 0) return -1
5656

5757
let pValueFirstRecp
58-
const error = iterate(buffer, p, (_, pointer, key) => {
58+
const error = iterate(buffer, p, (_, pointer) => {
5959
pValueFirstRecp = pointer
6060
return true
6161
})

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"test:only": "if grep -r --exclude-dir=node_modules --exclude-dir=.git --color 'test\\.only' ; then exit 1; fi",
8181
"test:bail": "npm run test:raw | tap-arc --bail",
8282
"test": "npm run test:raw | tap-arc && npm run test:only",
83+
"lint": "eslint .",
8384
"format-code": "prettier --write \"**/*.js\"",
8485
"format-code-staged": "pretty-quick --staged --pattern \"**/*.js\"",
8586
"coverage": "c8 --reporter=lcov npm run test"

test/lib/epochs.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ test('lib/epochs (getMissingMembers)', async (t) => {
188188
const rootFeeds = await Promise.all(
189189
peers.map((peer) => p(peer.metafeeds.findOrCreate)())
190190
)
191-
const [aliceId, bobId, oscarId] = rootFeeds.map((feed) => feed.id)
191+
const [, bobId, oscarId] = rootFeeds.map((feed) => feed.id)
192192

193193
const group = await run('alice creates a group', alice.tribes2.create({}))
194194
await sync('to get Additions feeds')

test/list-members.test.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,7 @@ test('listMembers works with exclusion', async (t) => {
286286
const msg =
287287
"Bob gets an error when trying to list members of the group he's excluded from"
288288
await pull(bob.tribes2.listMembers(groupId), pull.collectAsPromise())
289-
.then((res) => {
290-
console.log(res)
291-
t.fail(msg)
292-
})
289+
.then(() => t.fail(msg))
293290
.catch(() => t.pass(msg))
294291

295292
await p(setTimeout)(500)

0 commit comments

Comments
 (0)