Skip to content

Commit 5dcc5a3

Browse files
chore(deps-dev): bump @biomejs/biome from 1.9.4 to 2.4.8 in the dev-dependencies group (#1504)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
1 parent 8f62240 commit 5dcc5a3

22 files changed

+91
-101
lines changed

bin/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ module.exports = {
8585
website: config.get('WEBSITE_ENDPOINT') || 'http://localhost:3000'
8686
},
8787
limits: {
88-
windowSeconds: Number.parseInt(config.get('RATE_LIMIT_WINDOW')) || 1,
89-
max: Number.parseInt(config.get('RATE_LIMIT_MAX')) || 0,
90-
batchWindowSeconds: Number.parseInt(config.get('BATCH_RATE_LIMIT_WINDOW')) || 1,
91-
batchMax: Number.parseInt(config.get('BATCH_RATE_LIMIT_MAX')) || 0
88+
windowSeconds: Number.parseInt(config.get('RATE_LIMIT_WINDOW'), 10) || 1,
89+
max: Number.parseInt(config.get('RATE_LIMIT_MAX'), 10) || 0,
90+
batchWindowSeconds: Number.parseInt(config.get('BATCH_RATE_LIMIT_WINDOW'), 10) || 1,
91+
batchMax: Number.parseInt(config.get('BATCH_RATE_LIMIT_MAX'), 10) || 0
9292
},
9393
webhook: {
9494
githubSecret:

biome.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
33
"files": {
4-
"ignore": [
5-
".github/workflows/*",
6-
".vscode/launch.json",
7-
".nyc_output",
8-
"schemas/*.json",
9-
"test/**/*.json",
10-
"test/**/*.yaml"
4+
"includes": [
5+
"**",
6+
"!**/.github/workflows/**/*",
7+
"!**/.vscode/launch.json",
8+
"!**/.nyc_output",
9+
"!**/schemas/**/*.json",
10+
"!**/test/**/*.json",
11+
"!**/test/**/*.yaml"
1112
]
1213
},
1314
"formatter": {
@@ -28,22 +29,24 @@
2829
"rules": {
2930
"recommended": true,
3031
"suspicious": {
31-
"noConsoleLog": "off",
3232
"noAssignInExpressions": "off",
3333
"noDoubleEquals": "off",
3434
"noGlobalIsNan": "off",
3535
"noExplicitAny": "off",
3636
"noDuplicateTestHooks": "off",
3737
"noConfusingVoidType": "off",
38-
"noMisleadingInstantiator": "off"
38+
"noMisleadingInstantiator": "off",
39+
"noConsole": { "level": "off", "options": { "allow": ["log"] } },
40+
"noVar": "off",
41+
"useIterableCallbackReturn": "off"
3942
},
4043
"correctness": {
4144
"noUnusedVariables": "warn",
45+
"noUnusedFunctionParameters": "off",
4246
"noInnerDeclarations": "off"
4347
},
4448
"style": {
4549
"noParameterAssign": "off",
46-
"noVar": "off",
4750
"noUselessElse": "off",
4851
"useNodejsImportProtocol": "off",
4952
"useTemplate": "off",

business/aggregator.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import type { EntityCoordinates } from '../lib/entityCoordinates'
55
import type { Logger } from '../providers/logging'
6-
import type { Definition, DefinitionFile } from './definitionService'
6+
import type { Definition } from './definitionService'
77

88
/**
99
* Tool precedence configuration.

business/definitionService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ class DefinitionService {
929929
* @private
930930
* @deprecated This method is currently unused
931931
*/
932-
// @ts-ignore - unused but kept for API compatibility
932+
// @ts-expect-error - unused but kept for API compatibility
933933
_getDefinitionCoordinates(coordinates) {
934934
return Object.assign({}, coordinates, { tool: 'definition', toolVersion: 1 })
935935
}

lib/curation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class Curation {
100100
* @private
101101
*/
102102
_validateSpdxCompliance() {
103-
// @ts-ignore - data.revisions accessed after validation
104103
const revisions = this.data.revisions
105104
/** @type {{source: string, license: string}[]} */
106105
const sourceLicenseList = []

lib/fetch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ async function callFetch(request, axiosInstance = axios) {
8181
const options = buildRequestOptions(request)
8282
const response = await axiosInstance(options)
8383
if (!request.resolveWithFullResponse) return response.data
84-
// @ts-ignore - Adding custom properties to response object
84+
// @ts-expect-error - Adding custom properties to response object
8585
response.statusCode = response.status
86-
// @ts-ignore - Adding custom properties to response object
86+
// @ts-expect-error - Adding custom properties to response object
8787
response.statusMessage = response.statusText
8888
return response
8989
} catch (error) {
90-
// @ts-ignore - Adding statusCode property to error
90+
// @ts-expect-error - Adding statusCode property to error
9191
error.statusCode = error.response?.status
9292
throw error
9393
}

lib/gradleCoordinatesMapper.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: MIT
33

44
import type { EntityCoordinates, EntityCoordinatesSpec } from './entityCoordinates'
5-
import { FetchFunction, type FetchResponse } from './fetch'
5+
import { type FetchResponse } from './fetch'
66

77
/** Coordinates specific to Gradle plugin resolution */
88
export interface GradleCoordinates extends EntityCoordinatesSpec {

lib/rateLimit.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import type { NextFunction, Request, Response } from 'express'
55
import type { Store } from 'express-rate-limit'
6-
import { RedisClientType } from 'redis'
76
import type { ICache } from '../providers/caching'
87
import type { Logger } from '../providers/logging'
98

lib/utils.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const EntityCoordinates = require('./entityCoordinates')
1515
const ResultCoordinates = require('./resultCoordinates')
1616
const { DateTime } = require('luxon')
1717
const { set, unset, union, sortBy, trim, uniqBy } = require('lodash')
18-
// @ts-ignore - extend module has no types
1918
const extend = require('extend')
2019
const SPDX = require('@clearlydefined/spdx')
2120
const scancodeMap = require('./scancodeMap')
@@ -211,7 +210,7 @@ function extractDate(dateAndTime) {
211210
*/
212211
function compareDates(dateA, dateB) {
213212
if (!dateA || !dateB) return dateA ? 1 : dateB ? -1 : 0
214-
// @ts-ignore - Date subtraction works in JavaScript
213+
// @ts-expect-error - Date subtraction works in JavaScript
215214
return DateTime.fromISO(dateA).toJSDate() - DateTime.fromISO(dateB).toJSDate()
216215
}
217216

@@ -556,9 +555,7 @@ function getLicenseLocations(coordinates, packages) {
556555
go: [goLicenseLocation(coordinates)],
557556
debsrc: packages ? debsrcLicenseLocations(packages) : []
558557
}
559-
// @ts-ignore - dynamically adding sourcearchive property
560558
map.sourcearchive = map.maven
561-
// @ts-ignore - dynamic key access
562559
return map[coordinates.type]
563560
}
564561

package-lock.json

Lines changed: 36 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)