Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress error for jsx pragma #213

Closed
thilak-rao opened this issue Feb 3, 2020 · 2 comments
Closed

Suppress error for jsx pragma #213

thilak-rao opened this issue Feb 3, 2020 · 2 comments

Comments

@thilak-rao
Copy link

I have a project that uses emotion's css prop and it needs to have this JSX pragma on top every file - /** @jsx jsx */

eslint-plugin-tsdoc complains about the jsx pragma

ESLint: tsdoc-undefined-tag: The TSDoc tag "@jsx" is not defined in this configuration(tsdoc/syntax)

Is there a way to continue using this plugin while configuring it to not produce errors for jsx pragma?

@jhamill34
Copy link

@xthilakx I've been able to solve this by just creating a tsdoc.json file in the same folder as my tsconfig.json file with @jsx as a defined tag.

https://github.com/microsoft/tsdoc/tree/master/tsdoc-config

@octogonz
Copy link
Collaborator

That is the intended solution. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants