Skip to content

Commit

Permalink
[EngSys] upgrade typescript-eslint* dev dependencies to ~8.23.0 (Azur…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymeng authored Feb 5, 2025
1 parent 0f7f43f commit 007450f
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 116 deletions.
186 changes: 81 additions & 105 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/tools/dev-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"eslint": "^9.9.0",
"mkdirp": "^3.0.1",
"rimraf": "^5.0.5",
"typescript-eslint": "~8.16.0",
"typescript-eslint": "~8.23.0",
"uglify-js": "^3.4.9",
"vitest": "^3.0.3",
"@types/unzipper": "~0.10.10"
Expand Down
16 changes: 8 additions & 8 deletions common/tools/eslint-plugin-azure-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
"prettier": "./prettier.json",
"peerDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@typescript-eslint/eslint-plugin": "~8.16.0",
"@typescript-eslint/parser": "~8.16.0",
"@typescript-eslint/eslint-plugin": "~8.23.0",
"@typescript-eslint/parser": "~8.23.0",
"eslint": "^9.9.0",
"eslint-plugin-markdown": "^5.0.0",
"eslint-plugin-n": "^17.15.0",
Expand All @@ -100,22 +100,22 @@
"@eslint/js": "^9.9.0",
"@types/eslint": "^9.6.0",
"@types/estree": "~1.0.0",
"@typescript-eslint/typescript-estree": "~8.16.0",
"@typescript-eslint/typescript-estree": "~8.23.0",
"eslint-config-prettier": "^10.0.1",
"glob": "^10.3.10",
"tslib": "^2.6.2",
"typescript": "~5.7.2",
"typescript-eslint": "~8.16.0"
"typescript-eslint": "~8.23.0"
},
"devDependencies": {
"@types/eslint": "^9.6.0",
"@types/eslint__js": "8.42.3",
"@types/eslint-config-prettier": "6.11.3",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "~8.16.0",
"@typescript-eslint/parser": "~8.16.0",
"@typescript-eslint/rule-tester": "~8.16.0",
"@typescript-eslint/utils": "~8.16.0",
"@typescript-eslint/eslint-plugin": "~8.23.0",
"@typescript-eslint/parser": "~8.23.0",
"@typescript-eslint/rule-tester": "~8.23.0",
"@typescript-eslint/utils": "~8.23.0",
"@vitest/browser": "^3.0.3",
"@vitest/coverage-istanbul": "^3.0.3",
"eslint": "^9.9.0",
Expand Down
2 changes: 1 addition & 1 deletion common/tools/vite-plugin-browser-test-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
"prettier": "^3.3.3",
"rimraf": "^5.0.0",
"typescript": "~5.7.2",
"typescript-eslint": "~8.16.0"
"typescript-eslint": "~8.23.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/node": "^18.0.0",
"@eslint/js": "^9.9.0",
"eslint": "^9.9.0",
"typescript-eslint": "~8.16.0",
"typescript-eslint": "~8.23.0",
"typescript": "~5.7.2",
"rimraf": "^5.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,15 @@ export function getLogData(log: LogRecord): ExceptionData | TraceData {
const customDims = createCustomDimsFromAttributes(log.attributes);
if (isExceptionTelemetry(log)) {
return {
// eslint-disable-next-line @typescript-eslint/no-base-to-string
Message: String(log.attributes[SEMATTRS_EXCEPTION_MESSAGE]),
// eslint-disable-next-line @typescript-eslint/no-base-to-string
StackTrace: String(log.attributes[SEMATTRS_EXCEPTION_STACKTRACE]),
CustomDimensions: customDims,
};
} else {
return {
// eslint-disable-next-line @typescript-eslint/no-base-to-string
Message: String(log.body),
CustomDimensions: customDims,
};
Expand Down Expand Up @@ -460,6 +463,7 @@ function createCustomDimsFromAttributes(
key === SEMATTRS_EXCEPTION_STACKTRACE
)
) {
// eslint-disable-next-line @typescript-eslint/no-base-to-string
customDims.set(key, String(attributes[key]));
}
}
Expand Down
1 change: 1 addition & 0 deletions sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export function isTraceTelemetry(logRecord: LogRecord): boolean {
}

export function isSyntheticLoad(record: LogRecord | ReadableSpan): boolean {
// eslint-disable-next-line @typescript-eslint/no-base-to-string
const userAgent = String(record.attributes[SEMATTRS_HTTP_USER_AGENT]);
return userAgent !== null && userAgent.includes("AlwaysOn") ? true : false;
}
Expand Down

0 comments on commit 007450f

Please sign in to comment.