forked from prettier/prettier
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…14516) This fixes prettier#14514 by upgrading `editorconfig-to-prettier` with the fix from josephfrazier/editorconfig-to-prettier#10
- Loading branch information
1 parent
165d0da
commit 5e0b26e
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#### Support `max_line_length=off` when parsing `.editorconfig` (#14516 by @josephfrazier) | ||
|
||
If an .editorconfig file is in your project and it sets `max_line_length=off` for the file you're formatting, | ||
it will be interpreted as a `printWidth` of `Infinity` rather than being ignored | ||
(which previously resulted in the default `printWidth` of 80 being applied, if not overridden by Prettier-specific configuration). | ||
|
||
<!-- prettier-ignore --> | ||
```html | ||
<!-- Input --> | ||
<div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}/> | ||
|
||
<!-- Prettier stable --> | ||
<div | ||
className="HelloWorld" | ||
title={`You are visitor number ${num}`} | ||
onMouseOver={onMouseOver} | ||
/>; | ||
|
||
<!-- Prettier main --> | ||
<div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver} />; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters