Repository navigation
[vite-plugin v1 backport] Adopt shared Cloudflare lint preset - #17105
petebacondarwin wants to merge 3 commits into
Conversation
|
|
Codeowners approval required for this PR:
|
|
@NuroDev @petebacondarwin, please check this v1 backport of #17079 and approve if it looks good. You are the verified original author and latest qualifying human ant-core approver before merge (deduplicated where applicable). The original shared lint preset, explicit correctness rules and temporary baseline exceptions are retained. V1 only prunes configuration paths for absent public sibling packages. Full build/types/checks and package tests pass; four temporary probes verify existing project/test rules. Native GitHub stack #17084 is rooted at vite-plugin-v1. Earlier runtime and dependency coverage is supplied by #17054; no duplicate dependency PR is created. |
commit: |
There was a problem hiding this comment.
Superseded by the review of
17da507f.
This review, of 88c73a87
✅ Approved — Lint-tooling-only change; the preset migration keeps all project-specific rules, ignores and overrides, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
The change only touches lint configuration and dev dependencies. It adds no runtime code and no secrets.
📖 AGENTS.md: ✅ LGTM
This change does not affect the agent guidance.
📋 Code Quality: ✅ LGTM
All rules and ignore patterns from the old .oxlintrc.jsonc are present in oxlint.config.mts. The custom workers-sdk plugin and the turbo plugin are still wired in. Test-file strictness is applied again after the preset. tsrs is pinned exactly, and lint-config-shared stays workspace:*.
⚡ Performance: ✅ LGTM
No runtime performance impact.
📝 Documentation: ✅ LGTM
No documentation changes needed.
Reviewed commit: 88c73a87
88c73a8 to
17da507
Compare
There was a problem hiding this comment.
Superseded by the review of
91171455.
This review, of 17da507f
✅ Approved — Lint-tooling-only change; the preset migration keeps all project-specific rules, ignores and overrides, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
The change only touches lint configuration and dev dependencies. It adds no runtime code and no secrets.
📖 AGENTS.md: ✅ LGTM
This change does not affect the agent guidance.
📋 Code Quality: ✅ LGTM
All rules and ignore patterns from the old .oxlintrc.jsonc are present in oxlint.config.mts. The custom workers-sdk plugin and the turbo plugin are still wired in. Test-file strictness is applied again after the preset. tsrs is pinned exactly, and lint-config-shared stays workspace:*.
⚡ Performance: ✅ LGTM
No runtime performance impact.
📝 Documentation: ✅ LGTM
No documentation changes needed.
Reviewed commit: 17da507f — same changes as 88c73a87, so this is that commit's review (no new review was run; line numbers are as of 88c73a87)
17da507 to
9117145
Compare
There was a problem hiding this comment.
Superseded by the review of
3890c0ad.
This review, of 91171455
✅ Approved — Lint-tooling-only change; the preset migration keeps all project-specific rules, ignores and overrides, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
The change only touches lint configuration and dev dependencies. It adds no runtime code and no secrets.
📖 AGENTS.md: ✅ LGTM
This change does not affect the agent guidance.
📋 Code Quality: ✅ LGTM
All rules and ignore patterns from the old .oxlintrc.jsonc are present in oxlint.config.mts. The custom workers-sdk plugin and the turbo plugin are still wired in. Test-file strictness is applied again after the preset. tsrs is pinned exactly, and lint-config-shared stays workspace:*.
⚡ Performance: ✅ LGTM
No runtime performance impact.
📝 Documentation: ✅ LGTM
No documentation changes needed.
Reviewed commit: 91171455 — same changes as 88c73a87, so this is that commit's review (no new review was run; line numbers are as of 88c73a87)
Co-authored-by: Dario Piotrowicz <dario.piotrowicz@gmail.com>
3890c0a to
f0b2bab
Compare
There was a problem hiding this comment.
Superseded by the review of
3947d976.
This review, of f0b2bab0
💬 Approved with comments — This is a lint-tooling-only change that keeps all project-specific rules. One WARNING: the newly added tools/** override is mis-indented and will probably fail the format check.
Findings: 1 warning
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #17105.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (1)
### [Code Quality] The `tools/**` override block is indented two extra levels, so `oxfmt --check` in `pnpm check` will probably fail
- **File:** oxlint.config.mts:143
📋 Code Quality: ⚠️ 1 warning
The new tools/** override block is mis-indented and will probably fail the oxfmt format check.
Recommendation: 📝 Minor Comments
- [WARNING] The
tools/**override block is indented two extra levels, sooxfmt --checkinpnpm checkwill probably fail (oxlint.config.mts:143)
View full review
oxlint.config.mts:143-147: thetools/**override added in 3890c0a putsfiles:/rules:at four tabs and the rule entries at six. The sibling overrides use three and four..oxfmtrc.jsoncuses tabs and does not ignore this file, socheck:format(oxfmt --check, package.json:27) will probably flag it.
Everything else checks out. All old rules and ignores are carried over, the explicit correctness and test-strictness overrides are present, and the dependency pinning is correct.
✅ All other checks passed
🔒 Security: ✅ LGTM
This change only touches lint configuration and dev dependencies. The custom security rules (no-unsafe-command-execution, no-direct-recursive-rm, require-description-when-disabling) remain enabled.
📖 AGENTS.md: ✅ LGTM
This change does not affect the agent guidance.
⚡ Performance: ✅ LGTM
No runtime performance impact.
📝 Documentation: ✅ LGTM
No documentation changes needed.
Reviewed commit: f0b2bab0 — same changes as 3890c0ad, so this is that commit's review (no new review was run; line numbers are as of 3890c0ad)
Co-authored-by: clanky-the-clanker[bot] <342202840+clanky-the-clanker[bot]@users.noreply.github.com>
There was a problem hiding this comment.
✅ Approved — This pull request only changes lint tooling, and every project-specific rule is preserved. The one earlier WARNING (indentation of the tools/** override) is fixed, and there are no new findings.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
This pull request only touches lint configuration and dev dependencies. The custom security lint rules are still enabled (no-unsafe-command-execution, no-direct-recursive-rm, require-description-when-disabling, no-wrangler-named-imports). The only exception remains the existing one for the e2e directory.
📖 AGENTS.md: ✅ LGTM
This change does not affect the agent guidance.
📋 Code Quality: ✅ LGTM
The tools/** override at oxlint.config.mts:144-150 now uses the same indentation as its sibling overrides. Every rule, ignore and override from the old config is carried over, and lint-config-shared stays workspace:*.
⚡ Performance: ✅ LGTM
Lint tooling only.
📝 Documentation: ✅ LGTM
No documentation changes needed.
Reviewed commit: 3947d976
Backports #17079 to the retained v1 workspace. Adopt the original @cloudflare/oxlint-config preset, Oxlint 1.94 and tsrs backend, with the original explicit correctness rules, test strictness and temporary baseline exceptions. This changes the tooling that checks plugin and private support code; no published API or changeset is needed.
The only v1 configuration adaptation is pruning paths/overrides for public sibling packages absent from this branch. Existing v1 ignores and E2E/custom-plugin rules are preserved, and private lint-config-shared stays workspace:*. All retained upstream rule settings are copied directly; no additional rule exceptions or source fixes are introduced. The lockfile was regenerated with pnpm install.
Validation: pnpm check passes all 58 tasks, including builds, types, lint and formatting; pnpm test:ci passes. Temporary failing probes confirm both custom rules (Wrangler namespace imports and unsafe command execution) and explicit-any/non-null restrictions in tests still report. No permanent implementation-mirroring tests were added.
Depends on #17054 in native GitHub stack #17084 rooted at vite-plugin-v1. Its published runtime increment and workers-utils /config import adaptation are inherited, not repeated here.
Note
This is a contribution from an AI agent: Codex.