D
D
Dima Shishkin2019-07-25 07:19:26
JavaScript
Dima Shishkin, 2019-07-25 07:19:26

How to add exception type for jsdoc in phpStorm?

I have React in my project. In jsdoc, it is customary for us to specify the ReactElement type for JSX. The corresponding rule is in eslint. Therefore, the linter does not swear, but PhpStorm still highlights this type, giving an error: "Unresolved variable or type 'RecatElement'". How can you tell the storm that everything is fine and that this is the correct type?
42uh5kx.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question