prettier / prettier/prettier

`PRETTIER_EXPERIMENTAL_CLI` env support is not documented?

Open
#17,669 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
52.3k
Forks
5k
Avg merge
19h 2m
Merged PRs (30d)
117

Description

By the way, since the experimental cli is encouraged to be tried out, I'd expect it's already usable for most cases, but when I enable it I got:

Non-string plugin specifiers are not supported yet

There is even no warning and just use the default options when I'm using string config like:

// .prettierrc
"@1stg/prettier-config"

I have to use the following to get the warning:

import base from '@1stg/prettier-config'

export default base

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 reproducing the behavior with PRETTIER_EXPERIMENTAL_CLI enabled, comparing the .prettierrc string configuration with the shown JavaScript configuration. Check the experimental CLI entry point and its documentation; done means the unsupported plugin behavior and expected configuration are clearly documented or consistently handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.