Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions js/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export default [
"@typescript-eslint/no-empty-object-type": "warn",
// TODO: Fix violations and re-enable as "error"
"@typescript-eslint/no-unsafe-function-type": "warn",
// TODO: Fix violations and re-enable as "error"
"@typescript-eslint/prefer-as-const": "warn",
"@typescript-eslint/prefer-as-const": "error",
// Require node: protocol for Node.js built-in imports (for Deno compatibility)
// This plugin automatically detects ALL Node.js built-ins - no manual list needed!
"node-import/prefer-node-protocol": "error",
Expand Down
4 changes: 2 additions & 2 deletions js/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ export class Logger<IsAsyncFlush extends boolean> implements Exportable {
private calledStartSpan: boolean;

// For type identification.
public kind: "logger" = "logger";
public kind = "logger" as const;

constructor(
state: BraintrustState,
Expand Down Expand Up @@ -6134,7 +6134,7 @@ export class SpanImpl implements Span {
private _rootSpanId: string;
private _spanParents: string[] | undefined;

public kind: "span" = "span";
public kind = "span" as const;

constructor(
args: {
Expand Down
Loading