DenoDDeno
Powered by
InbestigatorI
Denoβ€’2y agoβ€’
1 reply
Inbestigator

Importing React causes linting issues

import React from "react"
import React from "react"
triggers two lint rules,
*
verbatim-module-syntax
verbatim-module-syntax
: It wants
import type React
import type React

*
no-unused-vars
no-unused-vars
: React isn't used explicitely in that file

How can I either install a plugin like
plugin:react/recommended
plugin:react/recommended
for ESLint, or somehow disable those rules in very specific cases?
image.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

dist folder causes issues with React version
SebastianSSebastian / help
9mo ago
Issues importing FullCalendar
JoshJJosh / help
2y ago
Confusing linting
MohammedMMohammed / help
12mo ago