Skip to content

Commit c964ccd

Browse files
committed
Update dev-dependencies
1 parent c626768 commit c964ccd

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type-coverage": "^2.0.0",
1616
"typescript": "^5.0.0",
1717
"undici": "^7.0.0",
18-
"xo": "^0.60.0"
18+
"xo": "^1.0.0"
1919
},
2020
"description": "The high-impact (popular) packages of npm",
2121
"exports": "./index.js",
@@ -68,7 +68,9 @@
6868
"xo": {
6969
"prettier": true,
7070
"rules": {
71+
"max-lines": "off",
7172
"unicorn/prefer-at": "off"
72-
}
73+
},
74+
"space": true
7375
}
7476
}

script/crawl-top-dependent.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ let page = 0 // First page is `1`.
5454
/** @type {Array<Result>} */
5555
const allResults = []
5656

57-
// eslint-disable-next-line no-constant-condition
5857
while (true) {
5958
page++
6059
console.log('fetching page: %s, collected total: %s', page, allResults.length)

script/crawl-top-download-scoped.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ console.log(
3838
const scopedSize = 24
3939
slice = 0
4040

41-
// eslint-disable-next-line no-constant-condition
4241
while (true) {
4342
const names = scoped.slice(slice * scopedSize, (slice + 1) * scopedSize)
4443

script/crawl-top-download-unscoped.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ console.log(
4747
unscoped.length
4848
)
4949

50-
// eslint-disable-next-line no-constant-condition
5150
while (true) {
5251
const names = unscoped.slice(slice * size, (slice + 1) * size)
5352

test.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@ import test from 'node:test'
33
import {npmHighImpact, npmTopDependents, npmTopDownloads} from 'npm-high-impact'
44

55
test('npmHighImpact', function () {
6-
assert(Array.isArray(npmHighImpact), 'should be a list')
7-
assert(
6+
assert.ok(Array.isArray(npmHighImpact), 'should be a list')
7+
assert.ok(
88
npmHighImpact.includes('supports-color'),
99
'should include pop packages'
1010
)
1111
})
1212

1313
test('npmTopDependents', function () {
14-
assert(Array.isArray(npmTopDependents), 'should be a list')
15-
assert(npmTopDependents.includes('typescript'), 'should include pop packages')
14+
assert.ok(Array.isArray(npmTopDependents), 'should be a list')
15+
assert.ok(
16+
npmTopDependents.includes('typescript'),
17+
'should include pop packages'
18+
)
1619
})
1720

1821
test('npmTopDownloads', function () {
19-
assert(Array.isArray(npmTopDownloads), 'should be a list')
20-
assert(
22+
assert.ok(Array.isArray(npmTopDownloads), 'should be a list')
23+
assert.ok(
2124
npmTopDownloads.includes('supports-color'),
2225
'should include pop packages'
2326
)

0 commit comments

Comments
 (0)