Skip to content

Conversation

@ronakmaheshwari
Copy link

…{bar}, ...baz)

PR Checklist

Overview

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @ronakmaheshwari!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

@netlify
Copy link

netlify bot commented Nov 11, 2025

Deploy Preview for typescript-eslint failed.

Name Link
🔨 Latest commit b9436bf
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/69134927091b0a0008d34199

@nx-cloud
Copy link

nx-cloud bot commented Nov 11, 2025

🤖 Nx Cloud AI Fix Eligible

An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.

To disable these notifications, a workspace admin can disable them in workspace settings.


View your CI Pipeline Execution ↗ for commit b9436bf

Command Status Duration Result
nx run-many --target=build --parallel --exclude... ❌ Failed 11s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-11 14:35:01 UTC

AST_NODE_TYPES.Identifier;

if (!isIdentifier && !isAssignmentToIdentifier) {
this.#throwError(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this part move to check-modifiers.ts?

Copy link
Author

Choose a reason for hiding this comment

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

We cant change the project structure and the function is used any many places

Copy link
Member

Choose a reason for hiding this comment

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

fisker is right, I think. This newly added logic duplicates what's already in convertParameters. It'd be better to add these new modifier checks to the existing area of code that checks modifiers.

@JoshuaKGoldberg JoshuaKGoldberg changed the title fix(parser): disallow invalid TS parameter property patterns ([foo], … fix(parser): disallow invalid TS parameter property patterns Nov 17, 2025
@JoshuaKGoldberg
Copy link
Member

JoshuaKGoldberg commented Nov 17, 2025

@ronakmaheshwari tip, you'll want to fill out PR descriptions before requesting review. https://typescript-eslint.io/contributing/pull-requests#raising-the-pr has our PR contributing process (but this is really a universal GitHub practice). Thanks for sending 🙂

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

This change has some build failures. Go ahead and take a look at the logs to see why it's failing. Cheers!

@JoshuaKGoldberg JoshuaKGoldberg added the awaiting response Issues waiting for a reply from the OP or another party label Nov 17, 2025
@ronakmaheshwari
Copy link
Author

I will be fixing it

@fisker
Copy link
Contributor

fisker commented Nov 17, 2025

I wounder if the build failure same as #11593

@ronakmaheshwari
Copy link
Author

@fisker I feel it's the entire codebase. It's very finicky to start development
They have many things running before starting development

@JoshuaKGoldberg
Copy link
Member

same as #11593

Maybe something around that obfuscated the issue, but I don't think this PR is incorrectly failing. In https://github.com/typescript-eslint/typescript-eslint/pull/11753/files#diff-341d9ffb40c62139c7da69b49d5081cbce7eabce79b58fe569de987a91e63c14R1482, param (type: ts.ParameterDeclaration) is being passed as a first argument to `hasModifier(modifierKind: ts.KeywordSyntaxKind, ...). That's a definite type error.

finicky

Yeah 😞. We have found it it difficult to manage a codebase that has so many cross-dependencies by nature (ESLint, TypeScript, multiple ASTs, multiple types of packages, etc.)...

@JoshuaKGoldberg
Copy link
Member

Oh, shoot. I just noticed #11760: a PR that tackles the same backing issue, #11708. #11760 was sent a few days after this PR, but because this PR wasn't properly linked to #11708, it wouldn't have been straightforward for @dbarabashh to see that a PR already existed for that issue. This is a big part of why we have the task list and issue linking in the PR template 🙃.

#11760 actually does apply the change suggested in #11753 (comment), putting validation in check-modifiers: https://github.com/typescript-eslint/typescript-eslint/pull/11760/files#diff-81eb8d3e58bc5321a39b3e2e954cc2816caf5a5bc43f24557af52a45ddc908d7R373. And it more thoroughly updates eslint-plugin.

This puts us in a hard spot. I don't want to close either PR because both have good work put into them. This one came first and you're actively working with us. But that one didn't do anything wrong - and couldn't have been expected to know it was a second PR for the issue. Blugh.

@JoshuaKGoldberg
Copy link
Member

#11760 was merged, so closing this out.

@ronakmaheshwari we appreciate you sending this PR (thanks again!). If you want to keep contributing, we'd love that - every little bit helps. Just please be sure to respect the contributing guide & templates so that we don't get into a race condition again. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting response Issues waiting for a reply from the OP or another party

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants