codesandbox / codesandbox/codesandbox-client

Support other Prettier config files such as `prettier.config.cjs`?

Open
#1,980 9 comments 0 reactions 0 assignees View on GitHub

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.json file.
  • A .prettierrc file written in JSON or YAML.
  • A .prettierrc.json, .prettierrc.yml, .prettierrc.yaml, or .prettierrc.json5 file.
  • A .prettierrc.js, .prettierrc.cjs, prettier.config.js, or prettier.config.cjs file that exports an object using module.exports.
  • A .prettierrc.toml file.

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.