Skip to content

chore: Clean up lint and format script names#19719

Open
logaretm wants to merge 4 commits intodevelopfrom
feat/clean-up-lint-format-scripts
Open

chore: Clean up lint and format script names#19719
logaretm wants to merge 4 commits intodevelopfrom
feat/clean-up-lint-format-scripts

Conversation

@logaretm
Copy link
Member

@logaretm logaretm commented Mar 9, 2026

Summary

Standardize lint/format script naming across the monorepo (53 files). Removes redundant/confusing scripts and makes naming consistent.

New root-level scripts

Script Command Purpose
verify run-s format:check lint Read-only: format check + lint
fix run-s format lint:fix Write: format + lint fix
lint oxlint . --type-aware Lint only
lint:fix oxlint . --fix --type-aware Lint + fix only
format oxfmt . --write Format only
format:check oxfmt . --check Format check only

What changed

  • lint now runs only oxlint (previously also ran oxfmt check)
  • lint:fix replaces old fix for oxlint auto-fix
  • New verify runs both format:check + lint (replaces old lint behavior)
  • New fix runs both format + lint:fix
  • All oxlint commands consistently include OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS flag and --type-aware across root and all sub-packages
  • Removes redundant scripts: fix:oxlint, fix:oxfmt, lint:oxfmt, lint:oxlint
  • Updates CI workflow (build.yml) to use new script names

Test plan

  • CI lint job passes with yarn lint instead of yarn lint:oxlint
  • CI format check job passes (unchanged yarn format:check)
  • yarn verify runs both format check and lint at root level
  • yarn fix runs both format and lint fix at root level

🤖 Generated with Claude Code

Closes #19722 (added automatically)

Standardize script naming across the monorepo:
- `lint` → oxlint only (was oxlint + oxfmt)
- `lint:fix` → oxlint --fix (was `fix`)
- `format` → oxfmt --write (unchanged)
- `format:check` → oxfmt --check (unchanged)
- `check` → runs both format:check + lint (new, root only)

All oxlint commands now consistently include the
OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS flag
and --type-aware across root and all sub-packages.

Removes redundant scripts: fix, fix:oxlint, fix:oxfmt, lint:oxfmt,
lint:oxlint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@logaretm logaretm requested a review from a team as a code owner March 9, 2026 17:30
Copilot AI review requested due to automatic review settings March 9, 2026 17:30
@logaretm logaretm requested a review from a team as a code owner March 9, 2026 17:30
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Ember lint:js not updated with new flags
    • Updated lint:js script to include OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true and --type-aware flags for consistency with other packages.
  • ✅ Fixed: Deno orphaned prefix hook after fix removal
    • Renamed the orphaned prefix hook to prelint:fix to properly run deno-types before the lint:fix script.

Create PR

Or push these changes by commenting:

@cursor push fefd10c5dd
Preview (fefd10c5dd)
diff --git a/packages/deno/package.json b/packages/deno/package.json
--- a/packages/deno/package.json
+++ b/packages/deno/package.json
@@ -36,7 +36,7 @@
     "build:tarball": "npm pack",
     "circularDepCheck": "madge --circular src/index.ts",
     "clean": "rimraf build build-types build-test coverage node_modules/.deno sentry-deno-*.tgz",
-    "prefix": "yarn deno-types",
+    "prelint:fix": "yarn deno-types",
     "lint:fix": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware",
     "prelint": "yarn deno-types",
     "lint": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --type-aware",

diff --git a/packages/ember/package.json b/packages/ember/package.json
--- a/packages/ember/package.json
+++ b/packages/ember/package.json
@@ -21,7 +21,7 @@
     "clean": "yarn rimraf sentry-ember-*.tgz dist tmp build .node_modules.ember-try package.json.ember-try instance-initializers index.d.ts runloop.d.ts types.d.ts",
     "lint": "run-p lint:js lint:hbs lint:ts",
     "lint:hbs": "ember-template-lint .",
-    "lint:js": "oxlint .",
+    "lint:js": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --type-aware",
     "lint:ts": "tsc",
     "lint:fix": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware",
     "start": "ember serve",
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

"clean": "rimraf build build-types build-test coverage node_modules/.deno sentry-deno-*.tgz",
"prefix": "yarn deno-types",
"fix": "oxlint . --fix",
"lint:fix": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware",
Copy link

Choose a reason for hiding this comment

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

Deno orphaned prefix hook after fix removal

Medium Severity

The prefix lifecycle hook (which runs yarn deno-types before the old fix script) is now orphaned since fix was removed and replaced by lint:fix. Running yarn lint:fix in the deno package won't trigger prefix, so deno types won't be downloaded first. The hook needs to be renamed to prelint:fix to match the new script name.

Additional Locations (1)

Fix in Cursor Fix in Web

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Standardizes lint/format script naming across the monorepo, separating formatting checks from linting and aligning oxlint invocation flags, and updates CI to use the new script names.

Changes:

  • Renames fixlint:fix and simplifies lint to run only oxlint (with consistent env flag + --type-aware) across packages.
  • Adds a root check script to run format:check + lint.
  • Updates CI workflow to call yarn lint instead of the removed yarn lint:oxlint, and updates contributor docs accordingly.

Reviewed changes

Copilot reviewed 53 out of 53 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Reworks root lint/fix scripts; adds check; keeps format/format:check.
.github/workflows/build.yml Updates lint step to run yarn lint.
AGENTS.md Updates documented yarn commands to reflect new lint/format scripts.
dev-packages/test-utils/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/size-limit-gh-action/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/node-overhead-gh-action/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/node-integration-tests/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/node-core-integration-tests/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/external-contributor-gh-action/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/e2e-tests/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/cloudflare-integration-tests/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/clear-cache-gh-action/package.json Renames fixlint:fix and standardizes oxlint flags.
dev-packages/browser-integration-tests/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/angular/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/astro/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/aws-serverless/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/browser-utils/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/browser/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/bun/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/cloudflare/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/core/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/deno/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/ember/package.json Updates fix script naming; partially standardizes oxlint flags.
packages/eslint-plugin-sdk/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/feedback/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/gatsby/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/google-cloud-serverless/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/hono/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/integration-shims/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/nestjs/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/nextjs/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/node-core/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/node-native/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/node/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/nuxt/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/opentelemetry/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/profiling-node/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/react-router/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/react/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/remix/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/replay-canvas/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/replay-internal/package.json Splits out format/format:check; standardizes oxlint flags; removes composite fix/lint scripts.
packages/replay-worker/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/solidstart/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/solid/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/sveltekit/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/svelte/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/tanstackstart-react/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/tanstackstart/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/types/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/vercel-edge/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/vue/package.json Renames fixlint:fix and standardizes oxlint flags.
packages/wasm/package.json Renames fixlint:fix and standardizes oxlint flags.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +23 to +26
| `yarn lint` | Lint (Oxlint) |
| `yarn lint:fix` | Lint + auto-fix (Oxlint) |
| `yarn format` | Format files (Oxfmt) |
| `yarn format:check` | Check formatting (Oxfmt) |
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

This doc updates the lint/format commands, but it doesn’t mention the newly added root-only yarn check script (format check + lint) described in the PR. Add yarn check to the command table so contributors can discover and use the new workflow.

Copilot uses AI. Check for mistakes.
Comment on lines 22 to +26
"lint": "run-p lint:js lint:hbs lint:ts",
"lint:hbs": "ember-template-lint .",
"lint:js": "oxlint .",
"lint:ts": "tsc",
"fix": "oxlint . --fix",
"lint:fix": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware",
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

yarn lint in this package runs lint:js, but lint:js still uses oxlint . without the OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS flag and without --type-aware, while lint:fix does include both. This makes lint and lint:fix inconsistent and also contradicts the PR’s goal of standardizing oxlint invocations. Update lint:js (and any other oxlint scripts here) to use the same flags as lint:fix (or alternatively make lint directly invoke the standardized oxlint command).

Copilot uses AI. Check for mistakes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@logaretm logaretm requested review from Lms24 and andreiborza March 9, 2026 17:38
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 25.64 kB +0.05% +12 B 🔺
@sentry/browser - with treeshaking flags 24.14 kB +0.03% +7 B 🔺
@sentry/browser (incl. Tracing) 42.44 kB +0.02% +8 B 🔺
@sentry/browser (incl. Tracing, Profiling) 47.1 kB +0.02% +8 B 🔺
@sentry/browser (incl. Tracing, Replay) 81.26 kB +0.02% +9 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.88 kB +0.02% +8 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 85.95 kB +0.02% +9 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 98.21 kB +0.01% +7 B 🔺
@sentry/browser (incl. Feedback) 42.44 kB +0.02% +7 B 🔺
@sentry/browser (incl. sendFeedback) 30.31 kB +0.04% +11 B 🔺
@sentry/browser (incl. FeedbackAsync) 35.36 kB +0.04% +11 B 🔺
@sentry/browser (incl. Metrics) 26.8 kB +0.04% +9 B 🔺
@sentry/browser (incl. Logs) 26.95 kB +0.03% +8 B 🔺
@sentry/browser (incl. Metrics & Logs) 27.62 kB +0.04% +9 B 🔺
@sentry/react 27.39 kB +0.04% +9 B 🔺
@sentry/react (incl. Tracing) 44.78 kB +0.02% +8 B 🔺
@sentry/vue 30.09 kB +0.04% +10 B 🔺
@sentry/vue (incl. Tracing) 44.31 kB +0.03% +9 B 🔺
@sentry/svelte 25.66 kB +0.04% +9 B 🔺
CDN Bundle 28.18 kB +0.04% +9 B 🔺
CDN Bundle (incl. Tracing) 43.27 kB +0.03% +11 B 🔺
CDN Bundle (incl. Logs, Metrics) 29.02 kB +0.04% +9 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 44.11 kB +0.03% +10 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 68.1 kB +0.02% +8 B 🔺
CDN Bundle (incl. Tracing, Replay) 80.15 kB +0.02% +12 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81.01 kB +0.02% +10 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 85.66 kB +0.02% +9 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.54 kB +0.02% +10 B 🔺
CDN Bundle - uncompressed 82.38 kB +0.04% +26 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 128.09 kB +0.03% +26 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 85.21 kB +0.04% +26 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 130.93 kB +0.02% +26 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 208.88 kB +0.02% +26 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 244.98 kB +0.02% +26 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 247.8 kB +0.02% +26 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 257.89 kB +0.02% +26 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 260.7 kB +0.01% +26 B 🔺
@sentry/nextjs (client) 47.19 kB +0.02% +9 B 🔺
@sentry/sveltekit (client) 42.9 kB +0.02% +8 B 🔺
@sentry/node-core 52.27 kB +0.07% +34 B 🔺
@sentry/node 174.77 kB +0.04% +62 B 🔺
@sentry/node - without tracing 97.44 kB +0.06% +53 B 🔺
@sentry/aws-serverless 113.24 kB +0.05% +48 B 🔺

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,875 - 9,389 -5%
GET With Sentry 1,713 19% 1,709 +0%
GET With Sentry (error only) 6,013 68% 6,041 -0%
POST Baseline 1,195 - 1,208 -1%
POST With Sentry 582 49% 589 -1%
POST With Sentry (error only) 1,067 89% 1,065 +0%
MYSQL Baseline 3,276 - 3,242 +1%
MYSQL With Sentry 498 15% 436 +14%
MYSQL With Sentry (error only) 2,683 82% 2,650 +1%

View base workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Clean up lint and format script names

2 participants