codesandbox / codesandbox/codesandbox-client
Support other Prettier config files such as `prettier.config.cjs`?
Open
Nobody has claimed this yet.
💬 Discussion
🤔 Improvement
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🌈 Feature
What is the position on supporting other forms of Prettier config files such as prettier.config.js?
Other formats as per the Prettier docs:
- A "prettier" key in your
package.jsonfile.- A
.prettierrcfile written in JSON or YAML.- A
.prettierrc.json,.prettierrc.yml,.prettierrc.yaml, or.prettierrc.json5file.- A
.prettierrc.js, .prettierrc.cjs,prettier.config.js, orprettier.config.cjsfile that exports an object usingmodule.exports.- A
.prettierrc.tomlfile.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating how the project currently discovers and reads Prettier configuration, then compare that behavior with the formats listed in the issue and the linked Prettier documentation. Done means the supported configuration forms are identified and the requested additional forms work consistently, with coverage for the relevant cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100