Skip to content

object typedef with no property warns with jsdoc/require-property #1082

@dmnsgn

Description

@dmnsgn

Expected behavior

No warning to be reported for typedef or an option to disable the behaviour.
We might want to document a type object without properties.

Actual behavior

warning  Missing JSDoc @property      jsdoc/require-property

ESLint Config

extends: [
      "eslint:recommended",
      "plugin:prettier/recommended",
      "plugin:jsdoc/recommended",
    ],
    plugins: ["eslint-plugin-prettier", "eslint-plugin-jsdoc"],

ESLint sample

/**
 * @typedef {object} MyTypeExtendingAnOption
 */

Environment

  • Node version: 20.1.0
  • ESLint version 8.40.0
  • eslint-plugin-jsdoc version: 44.2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions