Skip to content

fix(lint): exclude vendored rtk.ts from ts-standard#77

Merged
ChipWolf merged 2 commits into
mainfrom
wolf/fix-ts-standard-exclude-vendored-rtk
May 18, 2026
Merged

fix(lint): exclude vendored rtk.ts from ts-standard#77
ChipWolf merged 2 commits into
mainfrom
wolf/fix-ts-standard-exclude-vendored-rtk

Conversation

@ChipWolf
Copy link
Copy Markdown
Owner

Summary

  • home/dot_config/opencode/plugins/rtk.ts is vendored from https://github.com/rtk-ai/rtk and explicitly marked at the top of the file: "Keep in sync with upstream; do not modify locally."
  • ts-standard reports 12 issues against it (double-quoted strings, strict-boolean-expressions, trailing comma). Fixing them locally would defeat the vendor sync.
  • Fix: add TYPESCRIPT_STANDARD_FILTER_REGEX_EXCLUDE for that single file in .mega-linter.yml. The other three .ts plugins under home/dot_config/opencode/plugins/ continue to be linted.

Why

MegaLinter on main has been failing on the TYPESCRIPT/ts-standard block solely because of the vendored file. Excluding it lets ts-standard keep enforcing style on our own plugins.

Test plan

  • MegaLinter on this PR shows TYPESCRIPT/ts-standard green.
  • ts-standard home/dot_config/opencode/plugins/*.ts still flags issues in the non-vendored files if any are introduced.

Generated with Claude Code

ChipWolf added 2 commits May 18, 2026 13:45
home/dot_config/opencode/plugins/rtk.ts is vendored from
https://github.com/rtk-ai/rtk and explicitly marked
"Keep in sync with upstream; do not modify locally". Local style
fixes would defeat that, so exclude the file from ts-standard.
…exclude-vendored-rtk

# Conflicts:
#	.mega-linter.yml
@ChipWolf ChipWolf merged commit 6f7dc5f into main May 18, 2026
1 of 3 checks passed
@ChipWolf ChipWolf deleted the wolf/fix-ts-standard-exclude-vendored-rtk branch May 18, 2026 12:52
@github-actions github-actions Bot mentioned this pull request May 18, 2026
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