Skip to content

feat(lint): add noProcessExit - #12122

Merged
dyc3 merged 1 commit into
mainfrom
dyc3/port-no-process-exit-thr_xtscw35yt8
Oct 4, 2026
Merged

dyc3 merged 1 commit into
mainfrom
dyc3/port-no-process-exit-thr_xtscw35yt8

Conversation

@dyc3

@dyc3 dyc3 commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Summary

This adds noProcessExit, which is a port of https://eslint.org/docs/latest/rules/no-process-exit

implemented by Opus 5.5

Test Plan

snapshots

Docs

@changeset-bot

changeset-bot Bot commented Oct 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a9f578d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-win32-x64 Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/wasm-web Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added A-CLI Area: CLI A-Project Area: project A-Linter Area: linter L-JavaScript Language: JavaScript and super languages A-Diagnostic Area: diagnostocis labels Oct 4, 2026
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: biomejs/biome/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 764c2fd5-87c9-4e5d-a45b-bfb63da1863f
📥 Commits

Reviewing files that changed from the base of the PR and between 9db579b and a9f578d.

⛔ Files ignored due to path filters (12)
  • crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs is excluded by !**/migrate/eslint_any_rule_to_biome.rs and included by **
  • crates/biome_configuration/src/analyzer/linter/rules.rs is excluded by !**/rules.rs and included by **
  • crates/biome_configuration/src/generated/linter_options_check.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_diagnostics_categories/src/categories.rs is excluded by !**/categories.rs and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/invalid.js.snap is excluded by !**/*.snap and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/invalidImport.js.snap is excluded by !**/*.snap and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/invalidNamespaceImport.js.snap is excluded by !**/*.snap and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/valid.js.snap is excluded by !**/*.snap and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/validOtherModule.js.snap is excluded by !**/*.snap and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/validShadowed.js.snap is excluded by !**/*.snap and included by **
  • packages/@biomejs/backend-jsonrpc/src/workspace.ts is excluded by !**/backend-jsonrpc/src/workspace.ts and included by **
  • packages/@biomejs/biome/configuration_schema.json is excluded by !**/configuration_schema.json and included by **
📒 Files selected for processing (13)
  • .changeset/solid-worlds-battle.md
  • crates/biome_js_analyze/src/lint/nursery/no_process_exit.rs
  • crates/biome_js_analyze/src/lint/style/no_process_env.rs
  • crates/biome_js_analyze/src/shared/mod.rs
  • crates/biome_js_analyze/src/shared/node_process.rs
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/invalid.js
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/invalidImport.js
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/invalidNamespaceImport.js
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/valid.js
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/validOtherModule.js
  • crates/biome_js_analyze/tests/specs/nursery/noProcessExit/validShadowed.js
  • crates/biome_rule_options/src/lib.rs
  • crates/biome_rule_options/src/no_process_exit.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.


Walkthrough

The changes add the nursery rule noProcessExit. It reports calls to process.exit when process is unbound or imported from a process module. They also add rule options, share process-import detection with noProcessEnv, and add diagnostic and non-diagnostic tests.

Priority: ⬇️ Low

Change: Feature

Merge Risk: ⚪ Minimal · up to a9f57

No identified issue prevents merging after normal checks.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the addition of the noProcessExit lint rule.
Description check ✅ Passed The description identifies the rule as a port of ESLint’s no-process-exit rule and states the test plan.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@codspeed

codspeed Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 114 untouched benchmarks
⏩ 297 skipped benchmarks1


Comparing dyc3/port-no-process-exit-thr_xtscw35yt8 (a9f578d) with main (9db579b)

Open in CodSpeed

Footnotes

  1. 297 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@dyc3
dyc3 merged commit d87ecd3 into main Oct 4, 2026
37 checks passed
@dyc3
dyc3 deleted the dyc3/port-no-process-exit-thr_xtscw35yt8 branch October 4, 2026 05:59
@github-actions github-actions Bot mentioned this pull request Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI A-Diagnostic Area: diagnostocis A-Linter Area: linter A-Project Area: project L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants