Inbestigator
Inbestigator7d ago

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?
No description
1 Reply
Inbestigator
Inbestigator7d ago
Current workaround is just to call React.version; (Obviously not a desirable solution)