Skip to content

BUG: Use object shorthand or index signatures being applied to JavaScript files #1204

@franklygeorgy

Description

@franklygeorgy

warning Use object shorthand or index signatures instead of `Object`, e.g., `{[key: string]: string}` jsdoc/check-types is being applied to our JavaScript files. Either the example given is wrong for JavaScript or this doesn't apply to JavaScript at all.

We don't want to follow this directive anyways so having an option to toggle it off would be appreciated.

ESLint Config

{
    ....
    "rules": {
        "jsdoc/check-types": 1,
    }
}

ESLint sample

/**
 * brand
 *
 * @type {Object.<string, string>}
 */

Environment

  • Node version: v20.10.0
  • ESLint version v8.56.0
  • eslint-plugin-jsdoc version: 46.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions