Repository navigation
feat(formatters): add stylua, nimpretty, and elm-format formatters - #17618
sahitya-chandra wants to merge 2 commits into
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #14855 - "feat(opencode): add stylua formatter support for Lua files" Why it's related: This PR specifically adds stylua formatter support for Lua files, which is one of the three formatters being added in the current PR #17618. This appears to be a partial implementation that may overlap with the new PR's scope. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #XXXX
Type of change
What does this PR do?
Adds built-in formatter support for Lua, Nim, and Elm
Changes
packages/opencode/src/format/formatter.ts
.lua), enabled whenstyluais on PATH.nim), enabled whennimprettyis on PATH, command:nimpretty -w $FILE.elm), enabled whenelm-formatis on PATH, command:elm-format --yes $FILEpackages/web/src/content/docs/formatters.mdx
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
The code was verified with typecheck + lint only. No automated or manual runtime verification was done, but I made sure that it follows the same code pattern as other existing formatters
Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.