Skip to content

chore(lint): extend the shared @uinaf/oxlint-config - #129

Merged
altaywtf merged 16 commits into
mainfrom
chore/uinaf-oxlint-config
Nov 28, 2026
Merged

altaywtf merged 16 commits into
mainfrom
chore/uinaf-oxlint-config

Conversation

@altaywtf

Copy link
Copy Markdown
Member

workspace-kit now lints with the shared @uinaf/oxlint-config. Each rule it adds that the code met with a mechanical fix is on, one commit per rule.

Rules State
array-type, consistent-type-specifier-style, prefer-string-raw, prefer-string-replace-all, prefer-single-call, prefer-import-meta-properties, no-unnecessary-type-assertion, require-readable-spacing on; autofix
uinaf/no-comments on; autofix, plus two catches that now return instead of staying empty for no-empty
no-non-null-assertion, no-conditional-empty-object-spread, no-shape-in-symbol-names, consistent-function-scoping, preserve-caught-error on; hand fixes
no-console on, except src/cli.ts, scripts/ and parity/capture.ts
curly off; braces add uncovered lines and drop line coverage to 87.5%, under the 90% gate
no-runtime-typeof, no-unknown-parameters, no-unknown-returns, no-known-value-widening, no-unsafe-dictionary-type, no-unsafe-*, no-unsafe-type-assertion, require-safety-comment-for-type-assertion off; config and JSON parsing needs real schemas
  • Error messages and CLI output are unchanged; wrapped errors now carry cause.
  • No feat or fix commits, so no release.

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

Rules the shared config adds that fail today, off until fixed:
- anti-slop/no-runtime-typeof
- anti-slop/no-shape-in-symbol-names
- anti-slop/no-unknown-parameters
- anti-slop/require-readable-spacing
- anti-slop/require-safety-comment-for-type-assertion
- curly
- no-console
- preserve-caught-error
- import/consistent-type-specifier-style
- quality/no-conditional-empty-object-spread
- quality/no-known-value-widening
- quality/no-unknown-returns
- quality/no-unsafe-dictionary-type
- typescript/array-type
- typescript/no-non-null-assertion
- typescript/no-unnecessary-type-assertion
- typescript/no-unsafe-argument
- typescript/no-unsafe-assignment
- typescript/no-unsafe-call
- typescript/no-unsafe-member-access
- typescript/no-unsafe-type-assertion
- uinaf/no-comments
- unicorn/consistent-function-scoping
- unicorn/prefer-import-meta-properties
- unicorn/prefer-single-call
- unicorn/prefer-string-raw
- unicorn/prefer-string-replace-all
 Blank lines only, applied by the rule's autofix.
The rule's autofix removes the comments. Two catches it would leave empty, which no-empty rejects, now return explicitly.
Hoist the peer repository helper to module scope.
Index reads fall back to empty strings where the index is always in range; peerPath and projectPath destructure instead.
Rename ConfigShape to KnownConfigKeys, shapeErrors to definitionErrors, and the test loop variables.
Add optional fields in separate statements.
Wrapped errors carry the caught error as cause; messages are unchanged.
src/cli.ts, scripts/ and parity/capture.ts write terminal output by design.
@chatgpt-codex-connector

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:37.910258Z 876792e 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 3d60fcd into main Nov 28, 2026
1 check passed
@altaywtf
altaywtf deleted the chore/uinaf-oxlint-config branch November 28, 2026 12:20
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.
Its /vite-plus entry already loads the vite-plus plugin and
prefer-vite-plus-imports, so the local copies go.

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

#129 deleted comments that recorded the traversal-first contract
checks, case and Unicode alias handling, the dangling-symlink guard in
init, git maxBuffer, package-local version metadata, and the parity
locks. 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