FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(fleet): disable typescript/no-unnecessary-type-assertion by jdalton · Pull Request #663 · SocketDev/socket-sdk-js · GitHub

fix(fleet): disable typescript/no-unnecessary-type-assertion - #663

Merged
John-David Dalton (jdalton) merged 1 commit into
mainfrom
fix/disable-no-unnecessary-type-assertion
Jul 24, 2026
Merged

fix(fleet): disable typescript/no-unnecessary-type-assertion#663
John-David Dalton (jdalton) merged 1 commit into
mainfrom
fix/disable-no-unnecessary-type-assertion

Conversation

John-David Dalton (jdalton) commented Jul 24, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

Disables typescript/no-unnecessary-type-assertion fleet-wide (cascaded from our shared template). One line in .config/fleet/oxlintrc.json.

Why

The type-aware pass (--type-aware / tsgolint) builds scripts/**/*.mts a DEFAULT program because it can't discover a strict tsconfig above scripts/. That drops noUncheckedIndexedAccess, so the fleet-mandated cached-for-loop arr[i]! assertions (required by socket/prefer-cached-for-loop + noUncheckedIndexedAccess) read as unnecessary and red 🔎 Check. Adding tsconfig files was ruled out, so the rule is turned off.

Source

The canonical entry landed in our shared fleet template config; this mirrors it. checkOxlintRuleActivations would otherwise cascade the same "off" entry on the next sync.

Cascaded from socket-wheelhouse. The type-aware pass builds
scripts/**/*.mts a DEFAULT program (no strict tsconfig discoverable
above scripts/), dropping noUncheckedIndexedAccess and false-flagging
the fleet-mandated cached-for-loop `arr[i]!` assertions as unnecessary
— reddening 🔎 Check.
John-David Dalton (jdalton) merged commit ac19a9a into main Jul 24, 2026
4 checks passed
John-David Dalton (jdalton) deleted the fix/disable-no-unnecessary-type-assertion branch July 24, 2026 21:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL