Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Powersource committed May 11, 2023
1 parent 909ae88 commit fc442e3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ module.exports = {
sourceType: 'module',
},
rules: {
'no-console': ['error', { allow: ['error'] }],
'no-console': ['error', { allow: ['error', 'time', 'timeEnd'] }],
},
}
2 changes: 1 addition & 1 deletion lib/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function seekFirstRecp(buffer, start, p) {
if (p < 0) return -1

let pValueFirstRecp
const error = iterate(buffer, p, (_, pointer, key) => {
const error = iterate(buffer, p, (_, pointer) => {
pValueFirstRecp = pointer
return true
})
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"test:only": "if grep -r --exclude-dir=node_modules --exclude-dir=.git --color 'test\\.only' ; then exit 1; fi",
"test:bail": "npm run test:raw | tap-arc --bail",
"test": "npm run test:raw | tap-arc && npm run test:only",
"lint": "eslint .",
"format-code": "prettier --write \"**/*.js\"",
"format-code-staged": "pretty-quick --staged --pattern \"**/*.js\"",
"coverage": "c8 --reporter=lcov npm run test"
Expand Down
2 changes: 1 addition & 1 deletion test/lib/epochs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ test('lib/epochs (getMissingMembers)', async (t) => {
const rootFeeds = await Promise.all(
peers.map((peer) => p(peer.metafeeds.findOrCreate)())
)
const [aliceId, bobId, oscarId] = rootFeeds.map((feed) => feed.id)
const [, bobId, oscarId] = rootFeeds.map((feed) => feed.id)

const group = await run('alice creates a group', alice.tribes2.create({}))
await sync('to get Additions feeds')
Expand Down
5 changes: 1 addition & 4 deletions test/list-members.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,7 @@ test('listMembers works with exclusion', async (t) => {
const msg =
"Bob gets an error when trying to list members of the group he's excluded from"
await pull(bob.tribes2.listMembers(groupId), pull.collectAsPromise())
.then((res) => {
console.log(res)
t.fail(msg)
})
.then(() => t.fail(msg))
.catch(() => t.pass(msg))

await p(setTimeout)(500)
Expand Down

0 comments on commit fc442e3

Please sign in to comment.