codesandbox / codesandbox/codesandbox-client

Support prettier sharing configurations

Open
#6,033 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.