@babel/code-frame v7.12.13 breaks codeframe formatter #14087
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
breaking
This change is backwards-incompatible
formatter
Relates to the formatters bundled with ESLint
Projects
The version of ESLint you are using.
ESLint v7.19.0
The problem you want to solve.
codeframe formatter uses
@babel/code-frame
.The latest
@babel/code-frame
v7.12.13 made an intentional change babel/babel#12567 to trim trailing space after|
if the source code line is empty.Before:
After:
We agreed that this would be a breaking change in the
codeframe
formatter, and merged #14067 for ESLint v7.20.0 release to pin"@babel/code-frame": "7.12.11"
in order to prevent the change.However, we probably don't want to stay on
"@babel/code-frame": "7.12.11"
forever.Your take on the correct solution to problem.
Upgrade
@babel/code-frame
dependency in ESLint v8.0.0 as a breaking change in thecodeframe
formatter.Are you willing to submit a pull request to implement this change?
Yes.
The text was updated successfully, but these errors were encountered: