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
2 changes: 2 additions & 0 deletions .cursor/rules/sdk_development.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ You are working on the Sentry JavaScript SDK, a critical production SDK used by

- `yarn lint` - Run ESLint and Prettier checks
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment on this line still references "Prettier" but should be updated to "Oxfmt" to match the migration. The command now runs oxfmt checks instead of prettier checks.

Suggested change
- `yarn lint` - Run ESLint and Prettier checks
- `yarn lint` - Run ESLint and Oxfmt checks

Copilot uses AI. Check for mistakes.
- `yarn fix` - Auto-fix linting and formatting issues
- `yarn format:check` - Check file formatting only
- `yarn format` - Auto-fix formatting issues
- `yarn lint:es-compatibility` - Check ES compatibility

## Git Flow Branching Strategy
Expand Down
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ jobs:
id: install_dependencies

- name: Check file formatting
run: yarn lint:prettier
run: yarn format:check

job_circular_dep_check:
name: Circular Dependency Check
Expand Down
29 changes: 29 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"arrowParens": "avoid",
"printWidth": 120,
"proseWrap": "always",
"singleQuote": true,
"trailingComma": "all",
"experimentalSortPackageJson": false,
"ignorePatterns": [
"packages/browser/test/loader.js",
"packages/replay-worker/examples/worker.min.js",
"dev-packages/browser-integration-tests/fixtures",
"**/test.ts-snapshots/**",
"/.nx/cache",
"/.nx/workspace-data",
"dev-packages/**/*.html",
"dev-packages/**/*.hbs",
"packages/ember/**/*.hbs",
"packages/ember/**/*.html"
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lerna.json file was explicitly excluded in the old .prettierignore but is not included in the new .oxfmtrc.json ignorePatterns. With the trailingComma configuration set to "all", oxfmt will want to format lerna.json (adding a trailing comma after "npmClient": "yarn"), which may cause formatting check failures. Consider adding "lerna.json" to the ignorePatterns array in .oxfmtrc.json to maintain the previous behavior.

Suggested change
"packages/ember/**/*.html"
"packages/ember/**/*.html",
"lerna.json"

Copilot uses AI. Check for mistakes.
],
"overrides": [
{
"files": ["*.md", "*.mdc"],
"options": {
"proseWrap": "preserve"
}
}
]
}
9 changes: 0 additions & 9 deletions .prettierignore

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"esbenp.prettier-vscode",
"oxc.oxc-vscode",
"dbaeumer.vscode-eslint",
"augustocdias.tasks-shell-input",
"denoland.vscode-deno"
Expand Down
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"typescript.tsdk": "./node_modules/typescript/lib",
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": ".github/workflows/**.yml"
Expand All @@ -25,8 +25,8 @@
}
],
"deno.enablePaths": ["packages/deno/test"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "oxc.oxc-vscode",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "oxc.oxc-vscode"
}
}
4 changes: 3 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ You are working on the Sentry JavaScript SDK, a critical production SDK used by

### Linting and Formatting

- `yarn lint` - Run ESLint and Prettier checks
- `yarn lint` - Run ESLint and Oxfmt checks
- `yarn fix` - Auto-fix linting and formatting issues
- `yarn format:check` - Check file formatting only
- `yarn format` - Auto-fix formatting issues
- `yarn lint:es-compatibility` - Check ES compatibility

## Git Flow Branching Strategy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_compat"]
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"name": "hono-basic-worker",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_compat"]
"compatibility_flags": ["nodejs_compat"],
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"name": "hono-sdk-worker",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_compat"]
"compatibility_flags": ["nodejs_compat"],
}

Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
"migrations": [
{
"new_sqlite_classes": ["TestDurableObject"],
"tag": "v1"
}
"tag": "v1",
},
],
"durable_objects": {
"bindings": [
{
"class_name": "TestDurableObject",
"name": "TEST_DURABLE_OBJECT"
}
]
"name": "TEST_DURABLE_OBJECT",
},
],
},
"compatibility_flags": ["nodejs_als"],
"vars": {
"SENTRY_DSN": "https://932e620ee3921c3b4a61c72558ad88ce@o447951.ingest.us.sentry.io/4509553159831552"
}
"SENTRY_DSN": "https://932e620ee3921c3b4a61c72558ad88ce@o447951.ingest.us.sentry.io/4509553159831552",
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_compat"]
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_compat"]
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { RouterOutlet } from '@angular/router';
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
template: `<router-outlet></router-outlet>`,
template: `
<router-outlet></router-outlet>
`,
})
export class AppComponent {
title = 'angular-17';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-cancel',
standalone: true,
template: `<div></div>`,
template: `
<div></div>
`,
})
export class CancelComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sample-component',
standalone: true,
template: `<div></div>`,
template: `
<div></div>
`,
})
export class SampleComponent implements OnInit {
ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { RouterOutlet } from '@angular/router';
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
template: `<router-outlet></router-outlet>`,
template: `
<router-outlet></router-outlet>
`,
})
export class AppComponent {
title = 'angular-18';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-cancel',
standalone: true,
template: `<div></div>`,
template: `
<div></div>
`,
})
export class CancelComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { SampleComponent } from '../sample-component/sample-component.components
selector: 'app-cancel',
standalone: true,
imports: [TraceModule, SampleComponent],
template: `<app-sample-component [trace]="'sample-component'"></app-sample-component>`,
template: `
<app-sample-component [trace]="'sample-component'"></app-sample-component>
`,
})
@TraceClass({ name: 'ComponentTrackingComponent' })
export class ComponentTrackingComponent implements OnInit, AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sample-component',
standalone: true,
template: `<div>Component</div>`,
template: `
<div>Component</div>
`,
})
export class SampleComponent implements OnInit {
ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { RouterOutlet } from '@angular/router';
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
template: `<router-outlet></router-outlet>`,
template: `
<router-outlet></router-outlet>
`,
})
export class AppComponent {
title = 'angular-19';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-cancel',
standalone: true,
template: `<div></div>`,
template: `
<div></div>
`,
})
export class CancelComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sample-component',
standalone: true,
template: `<div>Component</div>`,
template: `
<div>Component</div>
`,
})
export class SampleComponent implements OnInit {
ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { RouterOutlet } from '@angular/router';
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
template: `<router-outlet></router-outlet>`,
template: `
<router-outlet></router-outlet>
`,
})
export class AppComponent {
title = 'angular-20';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-cancel',
standalone: true,
template: `<div></div>`,
template: `
<div></div>
`,
})
export class CancelComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sample-component',
standalone: true,
template: `<div>Component</div>`,
template: `
<div>Component</div>
`,
})
export class SampleComponent implements OnInit {
ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { RouterOutlet } from '@angular/router';
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
template: `<router-outlet></router-outlet>`,
template: `
<router-outlet></router-outlet>
`,
})
export class AppComponent {
title = 'angular-21';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-cancel',
standalone: true,
template: `<div></div>`,
template: `
<div></div>
`,
})
export class CancelComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sample-component',
standalone: true,
template: `<div>Component</div>`,
template: `
<div>Component</div>
`,
})
export class SampleComponent implements OnInit {
ngOnInit() {
Expand Down
Loading
Loading