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

feat!: remove formatters except html, json(-with-metadata), and stylish #17531

Merged
merged 11 commits into from Dec 20, 2023

Conversation

JoshuaKGoldberg
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg commented Sep 5, 2023

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 autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain: Removes something from core (formatters)

What changes did you make? (Give an overview)

Removes all but the html, json, json-with-metadata, and stylish formatters.

Is there anything you'd like reviewers to focus on?

This is breaking and will have to wait for the next major version. But I was excited about the work and figured I'd send it in early. 🙂

Fixes #17524.

@eslint-github-bot eslint-github-bot bot added breaking This change is backwards-incompatible feature This change adds a new feature to ESLint labels Sep 5, 2023
@netlify
Copy link

netlify bot commented Sep 5, 2023

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit 61532a4
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/656b39ba70f90e0008216528

Makefile.js Outdated Show resolved Hide resolved
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review September 5, 2023 05:17
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner September 5, 2023 05:17
@nzakas nzakas marked this pull request as draft September 5, 2023 15:03
@nzakas
Copy link
Member

nzakas commented Sep 5, 2023

No worries, we'll switch this to a draft. Please be sure to mention the original issue in the PR so it will be closed when this is merged.

@github-actions
Copy link

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions bot added the Stale label Sep 15, 2023
@Rec0iL99 Rec0iL99 removed the Stale label Sep 15, 2023
@JoshuaKGoldberg JoshuaKGoldberg changed the title feat!: remove formatters other than json(-with-metadata) and stylish feat!: remove formatters other than html, json(-with-metadata), and stylish Sep 26, 2023
@eslint-github-bot
Copy link

Hi @JoshuaKGoldberg!, thanks for the Pull Request

The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.

  • The length of the commit message must be less than or equal to 72

To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page.

Read more about contributing to ESLint here

@eslint-github-bot
Copy link

Hi @JoshuaKGoldberg!, thanks for the Pull Request

The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.

  • The length of the commit message must be less than or equal to 72

To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page.

Read more about contributing to ESLint here

@eslint-github-bot
Copy link

Hi @JoshuaKGoldberg!, thanks for the Pull Request

The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.

  • The length of the commit message must be less than or equal to 72

To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page.

Read more about contributing to ESLint here

@JoshuaKGoldberg JoshuaKGoldberg changed the title feat!: remove formatters other than html, json(-with-metadata), and stylish feat!: remove formatters except html, json(-with-metadata), and stylish Sep 26, 2023
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions bot added the Stale label Oct 6, 2023
@Rec0iL99 Rec0iL99 removed the Stale label Oct 7, 2023
@github-actions
Copy link

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions bot added the Stale label Oct 17, 2023
@nzakas nzakas removed the Stale label Oct 18, 2023
@github-actions
Copy link

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review November 5, 2023 18:50
@mdjermanovic
Copy link
Member

Can you also update this Set (this is for flat config mode):

const removedFormatters = new Set(["table", "codeframe"]);

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM pending @mdjermanovic's suggestions.

@mdjermanovic
Copy link
Member

@JoshuaKGoldberg we're keeping breaking changes as drafts for now so that we don't accidentally merge some before we start with v9 prereleases.

@mdjermanovic mdjermanovic marked this pull request as draft November 6, 2023 18:23
Copy link

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions bot added the Stale label Nov 16, 2023
@Rec0iL99 Rec0iL99 removed the Stale label Nov 17, 2023
Copy link

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@nzakas
Copy link
Member

nzakas commented Nov 30, 2023

@JoshuaKGoldberg there are some requests for updates on this PR, can you take a look?

lib/cli-engine/formatters/removed.js Outdated Show resolved Hide resolved
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mdjermanovic mdjermanovic marked this pull request as ready for review December 20, 2023 13:11
@mdjermanovic mdjermanovic merged commit 5304da0 into eslint:main Dec 20, 2023
22 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the remove-formatters branch December 20, 2023 16:02
bmish added a commit to bmish/eslint that referenced this pull request Dec 27, 2023
* main: (25 commits)
  test: ensure that CLI tests run with FlatESLint (eslint#17884)
  fix!: Behavior of CLI when no arguments are passed (eslint#17644)
  docs: Update README
  Revert "feat!: Remove CodePath#currentSegments" (eslint#17890)
  feat!: Update shouldUseFlatConfig and CLI so flat config is default (eslint#17748)
  feat!: Remove CodePath#currentSegments (eslint#17756)
  chore: update dependency markdownlint-cli to ^0.38.0 (eslint#17865)
  feat!: deprecate no-new-symbol, recommend no-new-native-nonconstructor (eslint#17710)
  feat!: check for parsing errors in suggestion fixes (eslint#16639)
  feat!: assert suggestion messages are unique in rule testers (eslint#17532)
  feat!: `no-invalid-regexp` make allowConstructorFlags case-sensitive (eslint#17533)
  fix!: no-sequences rule schema correction (eslint#17878)
  feat!: Update `eslint:recommended` configuration (eslint#17716)
  feat!: drop support for string configurations in flat config array (eslint#17717)
  feat!: Remove `SourceCode#getComments()` (eslint#17715)
  feat!: Remove deprecated context methods (eslint#17698)
  feat!: Swap FlatESLint-ESLint, FlatRuleTester-RuleTester in API (eslint#17823)
  feat!: remove formatters except html, json(-with-metadata), and stylish (eslint#17531)
  feat!: Require Node.js `^18.18.0 || ^20.9.0 || >=21.1.0` (eslint#17725)
  fix: allow circular references in config (eslint#17752)
  ...
@JoshuaKGoldberg JoshuaKGoldberg mentioned this pull request Mar 21, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion breaking This change is backwards-incompatible feature This change adds a new feature to ESLint formatter Relates to the formatters bundled with ESLint
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Change Request: Remove all formatters except stylish, html, json, and json-with-meta
4 participants