From e7b383b570db0f5b792887aa87e7b090f43125cb Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Sat, 18 Mar 2023 12:55:30 -0400 Subject: [PATCH] Support `max_line_length=off` when parsing `.editorconfig` (#14516) This fixes https://github.com/prettier/prettier/issues/14514 by upgrading `editorconfig-to-prettier` with the fix from https://github.com/josephfrazier/editorconfig-to-prettier/pull/10 --- changelog_unreleased/misc/14516.md | 21 +++++++++++++++++++++ package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 changelog_unreleased/misc/14516.md diff --git a/changelog_unreleased/misc/14516.md b/changelog_unreleased/misc/14516.md new file mode 100644 index 000000000000..e05195a64298 --- /dev/null +++ b/changelog_unreleased/misc/14516.md @@ -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). + + +```html + +