GeezerVison is showing github.com — Replace kcd-scripts prettier by JimMadge · Pull Request #416 · all-contributors/cli
Conversation
JimMadge
commented
Jan 29, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #415
Depends on #402
This copies the kcd-scripts prettier config into the repo.
This did result in some changes to the source files but the rules don't seem to conflict with eslint so I think it is fine if we are happy with the style.
I put the prettier config in an rc file. I'm not sure if there is much advantage to having an mjs file instead. We could switch if we want to do something more complex.
I presume eslint-config-prettier is doing it's job. That is configured in eslint.config.mjs, but I don't really understand what is going on in that file.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
JoshuaKGoldberg reacted with thumbs up emoji
Changing the name to be agnostic of the tool we use.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No blockers from me, this is nice and clean!
Only a couple of suggestions that I think might be better as followups. No preference on my end.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
eslint-config-prettier
Linking & recapping #402 (comment): its job (disabling ESLint rules that conflict with Prettier) is no longer necessary. 🔪
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
eslint-config-prettier
Linking & recapping #402 (comment): its job (disabling ESLint rules that conflict with Prettier) is no longer necessary. 🔪
Oh, so does that mean we can get rid of the dependency all together? I feel in the last 30 minutes I've learned a lot about Husky, Prettier, Lint Staged and ESLint for npm packages 😆. The Prettier docs suggested conflicts with ESLint can happen so you should use that package and be careful in which order you call them.
|
JoshuaKGoldberg reacted with rocket emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Oh, so does that mean we can get rid of the dependency all together?
Yup! Unless something regressed in 2025, eslint-config-prettier should no longer practically have any impact with the way we use it.
The Prettier docs suggested conflicts with ESLint can happen so you should use that package and be careful in which order you call them.
Oh, where did you see this? They might need updating to note that this is typically only true for custom and/or legacy configs.
|
JimMadge reacted with hooray emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Oh, where did you see this? They might need updating to note that this is typically only true for custom and/or legacy configs.
Recommendation for installing eslint-config-prettier here. And, warning about order of ESLint and Prettier in pre-commit hooks here
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
JimMadge reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|