Skip to content

Bug: [unified-signatures] not ignoring different jsdocs #11375

Open
@CarsonF

Description

@CarsonF

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Playground Link

https://typescript-eslint.io/play/#ts=5.8.2&showAST=es&fileType=.tsx&code=KYDwDg9gTgLgBAYwDYEMDOa4GFhKQHgH0AVOAXjgFcA7Aa2ogHdqA%2BOAbzgF8AoGATzDBsuJAEEAJhKjAM5DnBQBGAFxw0MKAEtqAc24BuHj1CRYiVHIDKAC2DB47HnDgB6AFTvnL93ADiUCgARoiicABmUBAAtorUcKBaGjr6CKIAdN5wvsQ2SaF4iBCUSBJwQcKRMXEQMHZQ6nYOADTllPB1whDUwjIwlFA9ZYxahRVZvuHQcHX5aE0wmS7Zrt5peAAUKFIyGGo4eACU%2B6L4s2gsRi4eXsu%2BAcEFSBFRsSjxwNQIEBLAZdO-b6-MrbaSyNBLHyrFzrJBbHbgtQabR6OAAHxEeEkYIwx0xBHOlzWog2WTghG%2BSEo0WoSM0KXRcGo1IqDQxB3ECLk7NEzTJhCijAA-GpmdFWXyXIcOGS%2BgN4j1GPiNocrtweLwgA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUFtQAIBcBPABxQGNoBLY-AWhXkoDt8B6WJygM0sQBNaySgHMmAQ3yxoKdGADa4HNkiJo0APbRIAGkU4sSnJBFNNiACLcuqxC3iEAcmIC2-AApjoLxPlWoM%2BHCIuoZGJmYA8gBuqvDqYnzIAOqU%2BAAWllzW0iwAUgDK5upksoGwiHrYAL6VALqKNVVAA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false

ESLint Config

module.exports = {
  parser: "@typescript-eslint/parser",
  rules: {
      '@typescript-eslint/unified-signatures': [
        'error',
        {
          ignoreDifferentlyNamedParameters: true,
          ignoreOverloadsWithDifferentJSDoc: true,
        },
      ],
  },
};

Expected Result

It correctly ignores the usage because there are different jsdocs.

Additional Info

The nodes being checked are TSEmptyBodyFunctionExpression, but the comments exist on the parent, MethodDefinition

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions