codesandbox / codesandbox/codesandbox-client
Support prettier sharing configurations
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🌈 Feature
Sharing configurations are actually not working with the prettier configuration.
Here is an example of how it could work:
.prettierrc:
"@company/prettier-config"
Related to #1980: could be great to support other configurations as cosmiconfig works as (at least) a workaround to this feature or (and better) to support extended shared configurations. eg. .prettierrc.js
module.exports = {
...require("@company/prettier-config"),
semi: false,
}
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 tracing how the .prettierrc configuration is loaded, using the linked sharing-configurations example as the expected behavior. Compare the package-only .prettierrc form with the .prettierrc.js extension example; done means shared and extended configurations work in the project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100