Importing React causes linting issues
import React from "react" triggers two lint rules,
* verbatim-module-syntax: It wants import type React
* no-unused-vars: React isn't used explicitely in that file
How can I either install a plugin like plugin:react/recommended for ESLint, or somehow disable those rules in very specific cases?
1 Reply
Current workaround is just to call
React.version; (Obviously not a desirable solution)