Skip to content

refactor(lint): re-enable the shared Oxlint rules - #205

Merged
altaywtf merged 17 commits into
mainfrom
chore/oxlint-tighten
Nov 28, 2026
Merged

altaywtf merged 17 commits into
mainfrom
chore/oxlint-tighten

Conversation

@altaywtf

Copy link
Copy Markdown
Member

Problem

The adoption PR switched off the @uinaf/oxlint-config rules that failed; turn them back on.

Solution

One commit per rule, fixing the code. 15 rules are back on; 7 stay off.

Still off Why
typescript/no-unsafe-type-assertion, anti-slop/require-safety-comment-for-type-assertion, anti-slop/no-runtime-typeof, anti-slop/no-unknown-parameters, quality/no-unsafe-dictionary-type Need schemas for the JSON, CSS and execFileSync results the scripts and lint CLI read
quality/no-known-value-widening countByRule returns Record<string, number> in the published @uinaf/design/lint API
unicorn/consistent-function-scoping 15 nested helpers, some with clashing names; hoisting them is a separate pass
  • uinaf/no-comments stays off for src/cdn.ts: the rule flags the @deprecated JSDoc on a published nested member.
  • no-console stays off for scripts/** and the design-check CLI, which print by design.
  • alchemy.run.ts imports Effect, Stack and RemovalPolicy by name; the stack's names and ids are unchanged.

Related: uinaf/oxlint-plugin-no-comments#21

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T12:18:57.773594Z 2ead243 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@altaywtf
altaywtf merged commit 6e7880a into main Nov 28, 2026
1 check passed
@altaywtf
altaywtf deleted the chore/oxlint-tighten branch November 28, 2026 12:22
altaywtf added a commit that referenced this pull request Nov 28, 2026
)

* chore(lint): bump @uinaf/oxlint-config to 1.0.4

1.0.4 ships no-comments 1.2.0, which keeps standalone SAFETY comments.
The release-age comment now matches the name-only excludes.

* chore(lint): restore SAFETY comments on unenforced invariants

#205 deleted comments that recorded release atomicity, fail-closed
changed-file enumeration, ReDoS bounds, the </script > evasion, why
shipped rules warn, the deploy identity, the design-check exit codes,
and why alchemy leaves domain unset and pins strictPort. No code or
test enforces them, so they return as SAFETY comments.
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.

1 participant