Skip to content
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

Remove CLI option --json #2193

Merged
merged 1 commit into from Nov 17, 2021

Conversation

bmish
Copy link
Member

@bmish bmish commented Nov 17, 2021

Follow-up to the deprecation of this option in #1907.

Use --format=json instead.

Part of v4 release (#1908).

@bmish bmish added the breaking label Nov 17, 2021
@@ -265,7 +260,7 @@ function printPending(results, options) {
}
let pendingListString = JSON.stringify(pendingList, null, 2);

if (options.json) {
if (options.format === 'json') {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug fix. Previously, --print-pending only worked with --json but not --format=json.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC: @scalvert

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracting the fix to master: #2210

Although it turns out both --json and --print-pending will be removed in v4.

@bmish bmish added this to the 4.0.0 milestone Nov 17, 2021
@bmish bmish mentioned this pull request Nov 17, 2021
58 tasks
@bmish bmish merged commit c7113d9 into ember-template-lint:next Nov 17, 2021
@bmish bmish deleted the remove-json-option-cli branch November 17, 2021 20:49
@bmish bmish changed the title Remove --json CLI option Remove CLI option --json Nov 24, 2021
ksrb pushed a commit to ksrb/intellij-emberjs-experimental that referenced this pull request Apr 25, 2022
patricklx pushed a commit to patricklx/intellij-emberjs-experimental that referenced this pull request Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants