Skip to content

stagehand-python@4.4.0a0.dev1670

@seanmcguire12 seanmcguire12 tagged this 03 Nov 22:45
# why
- the monorepo uses oxlint
# what changed
- ported the cli specific eslint rules into oxlint
- removed eslint dep & config/scripts

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Migrates `packages/cli` linting from ESLint to oxlint so the CLI uses
the same linter as the monorepo.

- Ports the CLI's ESLint rules (ESLint recommended, typescript-eslint
recommended, security, and `no-restricted-syntax` selectors) into custom
oxlint rules and overrides under `rules/oxlint/`, adding new
`stagehand/no-dynamic-code` and `stagehand/no-legacy-octal` rules to
cover nonliteral `eval`, dynamic `Function` construction, and legacy
octal literals in CommonJS.
- Adds integration tests that verify the new suite rejects the same
violations, accepts the same valid code, and honors the same ignore
patterns as the old ESLint config.
- Replaces the `eslint`/`eslint:fix` scripts with `oxlint`/`oxlint:fix`,
deletes `eslint.config.mjs`, and removes ESLint devDependencies and ~666
lockfile entries.

<sup>Written for commit ab83ea559d06af9359d6c78252e61f2b98ff8194.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/browserbase/stagehand/pull/3377?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/browserbase/stagehand/3377?returnTo=https%3A%2F%2Fgithub.com%2Fbrowserbase%2Fstagehand%2Fpull%2F3377&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
Assets 2
Loading