Skip to content

ESlint plugin: "Error applying TSDoc configuration: A tag is already defined using the name @jsx" #454

@crystalfp

Description

@crystalfp

Never had this problem.
I use the "typedoc-plugin-missing-exports": "^4.1.2" plugin and add @notExported in the comment for types not exported. This worked flawlessly till the latest plugin update ("eslint-plugin-tsdoc": "^0.5.0").
Now it complains that
"Error applying TSDoc configuration: A tag is already defined using the name @jsx" but I don't have this tag anywhere. And then tsdoc-undefined-tag: The TSDoc tag "@notExported" is not defined in this configuration but it is.
My tsdoc.json file is:

{
	"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
    "extends": ["typedoc/tsdoc.json"],
    "tagDefinitions": [
        {
            "tagName": "@description",
            "syntaxKind": "block"
        },
        {
            "tagName": "@implements",
            "syntaxKind": "modifier"
        },
        {
            "tagName": "@arg",
            "syntaxKind": "block"
        },
        {
            "tagName": "@displayName",
            "syntaxKind": "block"
        },
        {
            "tagName": "@component",
            "syntaxKind": "block"
        },
        {
            "tagName": "@todo",
            "syntaxKind": "block"
        },
        {
            "tagName": "@notExported",
            "syntaxKind": "modifier"
        }
    ],
    "supportForTags": {
        "@author": true,
        "@description": true,
        "@implements": true,
        "@internal": true,
        "@returns": true,
        "@param": true,
        "@remarks": true,
        "@arg": true,
        "@displayName": true,
        "@component": true,
        "@deprecated": true,
        "@typeParam": true,
        "@packageDocumentation": true,
        "@since": true,
        "@todo": true,
        "@link": true,
        "@notExported": true,
        "@throws": true
    }
}

How to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions