New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade: pin @babel/code-frame@7.12.11 #14067
Merged
Merged
Conversation
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
mdjermanovic
added
upgrade
This change is related to a dependency upgrade
evaluating
The team will evaluate this issue to decide whether it meets the criteria for inclusion
labels
Feb 4, 2021
It might be better to pin to the previous version. I don’t think we’ve ever made changes to formatter output outside of a major release. |
mdjermanovic
changed the title
Upgrade: @babel/code-frame@7.12.13
Upgrade: pin @babel/code-frame@7.12.11
Feb 5, 2021
Pinned to |
1 task
aladdin-add
approved these changes
Feb 8, 2021
nzakas
approved these changes
Feb 9, 2021
btmills
approved these changes
Feb 9, 2021
mdjermanovic
added
accepted
There is consensus among the team that this change meets the criteria for inclusion
and removed
evaluating
The team will evaluate this issue to decide whether it meets the criteria for inclusion
labels
Feb 10, 2021
It seems we have a consensus to pin |
This was referenced Mar 5, 2021
This was referenced Mar 17, 2021
Merged
1 task
eslint-github-bot
bot
added
the
archived due to age
This issue has been archived; please open a new issue for any further discussion
label
Aug 10, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
upgrade
This change is related to a dependency upgrade
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:
We're using
@babel/code-frame
for thecodeframe
formatter.The latest
@babel/code-frame
version7.12.13
, which was released yesterday, is causing failures on our CI:https://github.com/eslint/eslint/pull/14012/checks?check_run_id=1826678459
Tests are failing because
7.12.13
produces different output for empty lines: babel/babel#12567. That change is intentional. In particular, it removes a trailing space after|
if the line is empty.7.12.13
is in the specified range:eslint/package.json
Line 49 in 4cab165
What changes did you make? (Give an overview)
Fixed the failing tests to match the behavior ofv7.12.13
.Updated"@babel/code-frame": "^7.12.13"
inpackage.json
.Pinned
@babel/code-frame
to7.12.11
(that's the previous version, there is no7.12.12
).Is there anything you'd like reviewers to focus on?
The change in@babel/code-frame
changes the output of ourcodeframe
formatter. An alternative is to pin@babel/code-frame
to a previous version and upgrade in the next ESLint major. Another alternative is to update the code in the formatter to restore the previous output, if possible.7.12.11
forever, the next ESLint major version should have^7.12.13
(or higher). That will be a breaking change in thecodeframe
formatter.