fix(lint): exclude vendored rtk.ts from ts-standard#77
Merged
Conversation
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
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
home/dot_config/opencode/plugins/rtk.tsis 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-standardreports 12 issues against it (double-quoted strings,strict-boolean-expressions, trailing comma). Fixing them locally would defeat the vendor sync.TYPESCRIPT_STANDARD_FILTER_REGEX_EXCLUDEfor that single file in.mega-linter.yml. The other three .ts plugins underhome/dot_config/opencode/plugins/continue to be linted.Why
MegaLinter on
mainhas been failing on theTYPESCRIPT/ts-standardblock solely because of the vendored file. Excluding it letsts-standardkeep enforcing style on our own plugins.Test plan
TYPESCRIPT/ts-standardgreen.ts-standard home/dot_config/opencode/plugins/*.tsstill flags issues in the non-vendored files if any are introduced.Generated with Claude Code