prettier / prettier/prettier-cli

Experimental CLI does not support max_line_length from .editorconfig

Open
#71 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
43
Forks
10
Avg merge
18m
Merged PRs (30d)
1

Description

Environments:

  • Prettier Version: 3.6.0
  • Running Prettier via: CLI
  • Runtime: Node
  • Operating System: Windows

Steps to reproduce:

..\node_modules\.bin\prettier.cmd --ignore-path ../.prettierignore --write .
and
..\node_modules\.bin\prettier.cmd --ignore-path ../.prettierignore --experimental-cli --write .
produces the same output. Hurray.

But having max_line_length = 120 in .editorconfig is not handled in experimental-cli.

Contributor guide

No contributing guide indexed for this repository

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 with the experimental-cli entry point and trace how .editorconfig settings are loaded for the reported Windows CLI invocation. Reproduce the two commands with max_line_length = 120, then verify that experimental-cli applies the setting and produces the expected formatted output.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.