Skip to content

Commit 75669c7

Browse files
chore(deps-dev): bump the eslint group with 9 updates (#1652)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jozef Harag <jh.developer@pm.me>
1 parent f62ee6b commit 75669c7

File tree

8 files changed

+236
-240
lines changed

8 files changed

+236
-240
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ const config = [
341341
'**/artifacts/',
342342
'examples/nextjs/next-env.d.ts',
343343
'examples/electron/.webpack/',
344+
'**/resource-observer/assets/**/*.js',
344345
],
345346
},
346347
]

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,24 @@
3131
"devDependencies": {
3232
"@aws-sdk/client-cloudfront": "^3.1000.0",
3333
"@aws-sdk/client-s3": "^3.1000.0",
34-
"@eslint/js": "^9.39.2",
34+
"@eslint/js": "^10.0.1",
3535
"@octokit/request": "^10.0.8",
3636
"@size-limit/file": "^12.0.0",
37-
"@stylistic/eslint-plugin": "^5.7.1",
37+
"@stylistic/eslint-plugin": "^5.9.0",
3838
"@types/ws": "^8.18.0",
39-
"@typescript-eslint/eslint-plugin": "^8.54.0",
40-
"@typescript-eslint/parser": "^8.54.0",
39+
"@typescript-eslint/eslint-plugin": "^8.56.1",
40+
"@typescript-eslint/parser": "^8.56.1",
4141
"@vitest/browser": "^4.0.16",
4242
"@vitest/browser-playwright": "^4.0.16",
4343
"@vitest/coverage-istanbul": "^4.0.16",
4444
"@vitest/ui": "^4.0.16",
4545
"dotenv": "^17.3.1",
46-
"eslint": "^9.39.2",
46+
"eslint": "^10.0.2",
4747
"eslint-config-prettier": "^10.1.8",
48-
"eslint-plugin-headers": "1.3.3",
49-
"eslint-plugin-perfectionist": "^5.4.0",
48+
"eslint-plugin-headers": "1.3.4",
49+
"eslint-plugin-perfectionist": "^5.6.0",
5050
"eslint-plugin-prettier": "^5.5.5",
51-
"eslint-plugin-unicorn": "^62.0.0",
51+
"eslint-plugin-unicorn": "^63.0.0",
5252
"fastify": "^5.7.3",
5353
"globals": "^17.3.0",
5454
"markdownlint-cli": "^0.47.0",
@@ -60,7 +60,7 @@
6060
"tsx": "^4.21.0",
6161
"turbo": "^2.8.12",
6262
"typescript": "^5.9.3",
63-
"typescript-eslint": "^8.54.0",
63+
"typescript-eslint": "^8.56.1",
6464
"vitest": "^4.0.16",
6565
"ws": "^8.18.3"
6666
},

packages/integration-tests/src/tests/errors/views/script1.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ document.querySelector('#button1').addEventListener('click', function () {
2020
throw new Error('Error from script1.js')
2121
})
2222
window.sourceMapIds = window.sourceMapIds || {}
23-
let s = ''
23+
let s
2424
try {
2525
throw new Error('error')
2626
} catch (error) {

packages/integration-tests/src/tests/errors/views/script2.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ document.querySelector('#button2').addEventListener('click', function () {
2020
throw new Error('Error from script2.js')
2121
})
2222
window.sourceMapIds = window.sourceMapIds || {}
23-
let s = ''
23+
let s
2424
try {
2525
throw new Error('error')
2626
} catch (error) {

packages/session-recorder/src/api/api-fetch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const apiFetch = async <T>(
9292
let responseData = null
9393
let fetchStart = performance.now()
9494
let fetchTotalMs = 0
95-
let finalRetries = -1
95+
let finalRetries: number
9696
let fetchError: Error | undefined
9797

9898
for (let counter = 1; counter <= retryCount; counter++) {
@@ -297,6 +297,7 @@ export const apiFetch = async <T>(
297297
: new Error(`Could not convert data to JSON in ${finalUrl.href} request`)
298298
throw errorToThrow
299299
} else if (throwOnConvert) {
300+
// eslint-disable-next-line preserve-caught-error
300301
throw new Error(`Unknown error happened during API call. ${JSON.stringify(error)}`)
301302
} else {
302303
break

packages/session-recorder/src/otlp-log-exporter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ export default class OTLPLogExporter {
168168
}
169169

170170
exportQueuedLogs(): void {
171-
let logs: QueuedLog[] = []
172-
logs = getQueuedLogs() ?? []
171+
const logs: QueuedLog[] = getQueuedLogs() ?? []
173172

174173
// Remove all logs and add only ones that are relevant before sending
175174
removeQueuedLogs()

packages/web/src/utils/xpath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function getElementXPath(target: Node, optimised: boolean): string {
3939
function getNodeValue(target: HTMLElement, optimised: boolean): string {
4040
const nodeType = target.nodeType
4141
const index = getNodeIndex(target)
42-
let nodeValue = ''
42+
let nodeValue: string
4343
switch (nodeType) {
4444
case Node.ELEMENT_NODE: {
4545
const id = target.getAttribute('id')

0 commit comments

Comments
 (0)