Repository navigation
Fix lint errors, migrate ESLint flat config, and export PostResult type - #1
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/rrainn/SocialMediaManager/sessions/426316bc-5365-4046-87ac-65fc0fbf2b31 Co-authored-by: fishcharlie <860375+fishcharlie@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rrainn/SocialMediaManager/sessions/426316bc-5365-4046-87ac-65fc0fbf2b31 Co-authored-by: fishcharlie <860375+fishcharlie@users.noreply.github.com>
…t config Agent-Logs-Url: https://github.com/rrainn/SocialMediaManager/sessions/426316bc-5365-4046-87ac-65fc0fbf2b31 Co-authored-by: fishcharlie <860375+fishcharlie@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rrainn/SocialMediaManager/sessions/b339a34b-f254-4fa0-af08-7c7a8edcd220 Co-authored-by: fishcharlie <860375+fishcharlie@users.noreply.github.com>
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
Fixes all ESLint errors in
src/Poster.ts, migrates the ESLint configuration to the modern flat-config format (required by ESLint v10), and exports the newPostResultinterface so the changes remain non-breaking for TypeScript consumers.Changes
ESLint migration
.eslintrc.json+.eslintignorewitheslint.config.js(flat config) using@typescript-eslint/eslint-plugin'sflat/recommendedpresetsrc/Poster.tstype improvementsPostResultinterface (now exported) replacing{[key: string]: any}/GeneralObject<any>across allpost,repost, andreplyoverload signaturesnumber[]instead ofany[]mediaIds) instead of bypassing types with snake_casemedia_ids+as anycatch (e) {}→catch {}in three empty catch blockslet imageKeydeclaration + assignment intoconst imageKey = randomUUID()UUIDandGeneralObjectimportsNon-breaking fix
PostResultis now exported from bothsrc/Poster.tsandsrc/index.ts. Consumers can import it directly: