GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat!: `no-unused-vars` default caughtErrors to 'all' by JoshuaKGoldberg · Pull Request #18043 · eslint/eslint

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Jan 27, 2024

Copy link
Copy Markdown
Contributor

Prerequisites checklist

  • I have read the contributing guidelines.

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[x] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)

Changes the default value for the no-unused-vars rule's caughtErrors option from "none" to "all".

Fixes #17974.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hendriknielaender reacted with rocket emoji
All reactions
  • 🚀 1 reaction
@JoshuaKGoldberg
feat!: no-unused-vars default caughtErrors to 'all'
30ec664
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from a team as a code owner January 27, 2024 14:48
@eslint-github-bot eslint-github-bot Bot added breaking This change is backwards-incompatible feature This change adds a new feature to ESLint labels Jan 27, 2024
@netlify

netlify Bot commented Jan 27, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 466b371
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/65bb4acb4169a90008a4e0a6
😎 Deploy Preview https://deploy-preview-18043--docs-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Tanujkanti4441

Tanujkanti4441 commented Jan 27, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Could you change the docs too?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JoshuaKGoldberg

JoshuaKGoldberg commented Jan 28, 2024

Copy link
Copy Markdown
Contributor Author

D'oh, right, thanks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JoshuaKGoldberg
docs: update no-unused-vars.md
1b965cd
@snitin315

snitin315 commented Jan 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

We need to mention this in the migration guide, where we have mentioned other breaking changes as well.

JoshuaKGoldberg reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JoshuaKGoldberg
docs: mention caughtErrors in migrate-to-9.0.0.md
87e809f
@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Jan 29, 2024
mdjermanovic
mdjermanovic reviewed Jan 29, 2024
View reviewed changes
Comment thread docs/src/rules/no-unused-vars.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

mdjermanovic
mdjermanovic reviewed Jan 29, 2024
View reviewed changes
Comment thread docs/src/use/migrate-to-9.0.0.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

bmish
bmish reviewed Jan 29, 2024
View reviewed changes
Comment thread docs/src/use/migrate-to-9.0.0.md
* [`no-restricted-imports` now accepts multiple config entries with the same `name`](#no-restricted-imports)
* [`"eslint:recommended"` and `"eslint:all"` strings no longer accepted in flat config](#string-config)
* [`no-inner-declarations` has a new default behavior with a new option](#no-inner-declarations)
* [`no-unused-vars` now defaults `caughtErrors` to `"all"`](#no-unused-vars)

@bmish bmish Jan 29, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

As an aside, it would be nice in a separate PR to group all default rule option changes together in this list or a sub-list.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JoshuaKGoldberg reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
JoshuaKGoldberg and others added 2 commits January 30, 2024 14:24
@JoshuaKGoldberg @mdjermanovic
chore: typo fix in docs/src/use/migrate-to-9.0.0.md
7865383
Co-authored-by: Milos Djermanovic <[email protected]>
@JoshuaKGoldberg
chore: fix formatting in no-unused-vars.md
9875cbb
amareshsm
amareshsm reviewed Jan 30, 2024
View reviewed changes
Comment thread docs/src/use/migrate-to-9.0.0.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

nzakas
nzakas approved these changes Jan 31, 2024
View reviewed changes

@nzakas nzakas left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM pending @amareshsm's grammar update.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
JoshuaKGoldberg and others added 2 commits January 31, 2024 18:51
@JoshuaKGoldberg @amareshsm
fix: 'are'/'were' in docs/src/use/migrate-to-9.0.0.md
0b6d01c
Co-authored-by: Amaresh  S M  <[email protected]>
@amareshsm
Merge branch 'main' into no-unused-vars-caughtErrors-all
466b371
amareshsm
amareshsm approved these changes Feb 1, 2024
View reviewed changes

@amareshsm amareshsm left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@amareshsm
amareshsm merged commit 1a94589 into eslint:main Feb 1, 2024
@JoshuaKGoldberg
JoshuaKGoldberg deleted the no-unused-vars-caughtErrors-all branch February 2, 2024 20:05
@JoshuaKGoldberg JoshuaKGoldberg mentioned this pull request Apr 22, 2024
feat(eslint-plugin): [no-unused-vars] align catch behavior to ESLint 9 typescript-eslint/typescript-eslint#8971
Merged
3 tasks done
@baby636 baby636 mentioned this pull request May 21, 2024
[Snyk] Upgrade eslint from 5.6.1 to 9.1.1 baby636/bitdb-testnet#14
Open
@merfu merfu mentioned this pull request May 25, 2024
[Snyk] Upgrade eslint from 5.16.0 to 9.2.0 merfu/aws-serverless-workshops#5
Open
@Omrisnyk Omrisnyk mentioned this pull request May 26, 2024
[Snyk] Security upgrade eslint from 5.16.0 to 9.0.0 Omrisnyk/ElastiQuill#53
Open
@lholmquist lholmquist mentioned this pull request May 26, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.2.0 nodeshift/kube-service-bindings#156
Closed
@ekmixon ekmixon mentioned this pull request May 26, 2024
[Snyk] Upgrade eslint from 6.8.0 to 9.2.0 ekmixon/aquasecurity-cloudsploit#126
Open
@drwho725 drwho725 mentioned this pull request May 28, 2024
[Snyk] Upgrade eslint from 9.0.0 to 9.2.0 drwho725/slack-link-unfurling#26
Merged
@lholmquist lholmquist mentioned this pull request Jul 3, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.4.0 nodeshift/kube-service-bindings#186
Closed
@hashim21223445 hashim21223445 mentioned this pull request Jul 4, 2024
[Snyk] Upgrade eslint from 9.0.0 to 9.4.0 hashim21223445/nextjs-blog-theme#18
Merged
@lholmquist lholmquist mentioned this pull request Jul 4, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.4.0 nodeshift/kube-service-bindings#187
Closed
@JoshuaKGoldberg JoshuaKGoldberg mentioned this pull request Jul 4, 2024
chore: brought in typescript-eslint@v8 with stylistic preset redwoodjs/graphql#10911
Merged
@lholmquist lholmquist mentioned this pull request Jul 5, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.4.0 nodeshift/kube-service-bindings#189
Closed
@JoshuaKGoldberg JoshuaKGoldberg mentioned this pull request Jul 5, 2024
chore: bump typescript-eslint to v8 with project service trpc/trpc#5868
Closed
3 tasks done
@snyk-io snyk-io Bot mentioned this pull request Jul 5, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 Morin3/Andoka-xh#3
Closed
@hashim21223445 hashim21223445 mentioned this pull request Jul 6, 2024
[Snyk] Upgrade eslint from 9.0.0 to 9.5.0 hashim21223445/nextjs-blog-theme#19
Merged
@snyk-io snyk-io Bot mentioned this pull request Jul 6, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 Morin3/morni-morni#15
Closed
@lholmquist lholmquist mentioned this pull request Jul 6, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 nodeshift/kube-service-bindings#190
Closed
@saidsef saidsef mentioned this pull request Jul 6, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 saidsef/tracing-node#164
Closed
@junsulee junsulee mentioned this pull request Jul 6, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 junsulee/Anki-Android#3
Open
@ekmixon ekmixon mentioned this pull request Jul 6, 2024
[Snyk] Upgrade eslint from 6.8.0 to 9.5.0 ekmixon/aquasecurity-cloudsploit#131
Open
@snyk-io snyk-io Bot mentioned this pull request Jul 7, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 Morin3/morni-morni#18
Merged
This was referenced Jul 9, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 nodeshift/kube-service-bindings#191
Closed
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 nodeshift/kube-service-bindings#192
Closed
@jadsongmatos jadsongmatos mentioned this pull request Jul 10, 2024
[Snyk] Upgrade eslint from 9.0.0 to 9.5.0 jadsongmatos/brasil-search#24
Merged
@lholmquist lholmquist mentioned this pull request Jul 11, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 nodeshift/kube-service-bindings#193
Closed
This was referenced Jul 12, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 Morin3/Andoka-now-#14
Merged
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 Morin3/Andoka-xh#8
Merged
This was referenced Jul 12, 2024
[Snyk] Upgrade eslint from 9.0.0 to 9.5.0 hashim21223445/Andoka-now-nextjs-blog-theme#17
Closed
[Snyk] Upgrade eslint from 9.0.0 to 9.5.0 hashim21223445/Small-Hajilija-.h#17
Closed
@lholmquist lholmquist mentioned this pull request Jul 13, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 nodeshift/kube-service-bindings#194
Closed
@saidsef saidsef mentioned this pull request Jul 13, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 saidsef/tracing-node#169
Closed
@hashim21223445 hashim21223445 mentioned this pull request Jul 14, 2024
[Snyk] Upgrade eslint from 9.0.0 to 9.5.0 hashim21223445/Small-Hajilija-.h#19
Closed
@saidsef saidsef mentioned this pull request Jul 15, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 saidsef/tracing-node#173
Closed
This was referenced Jul 16, 2024
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 nodeshift/kube-service-bindings#195
Closed
[Snyk] Upgrade eslint from 8.57.0 to 9.5.0 nodeshift/kube-service-bindings#196
Closed
@eslint-github-bot eslint-github-bot Bot locked and limited conversation to collaborators Jul 31, 2024
@eslint-github-bot 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 Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@mdjermanovic mdjermanovic mdjermanovic left review comments
@nzakas nzakas nzakas approved these changes
@amareshsm amareshsm amareshsm approved these changes
+1 more reviewer
@bmish bmish bmish left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

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 breaking This change is backwards-incompatible feature This change adds a new feature to ESLint

Projects

Triage
Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Rule Change: Change default for no-unused-var's caughtErrors option to "all"

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@JoshuaKGoldberg @Tanujkanti4441 @snitin315 @nzakas @bmish @amareshsm @mdjermanovic
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.