DenoDDeno
Powered by
vicaryV
Deno•5mo ago
vicary

Ambiguous linting on import type and jsdoc

I want to enforce the usage of
import type
import type
when no value is referenced in the module, and it works most of the time.

The issue happens when I reference another type using
@see
@see
in jsdoc, this is very common for foreign keys in DAO / Entity interfaces such as Drizzle / Kysely.

When this kind of reference exists, import type results in errors inside the jsdoc for value referencing; while normal imports results in the lint error of
verbatim-module-syntax
verbatim-module-syntax
itself.

How should I make it work?
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

Properly Integrating JSDoc and Type Definitions for Deno and JS
zer0Zzer0 / help
16mo ago
Confusing linting
MohammedMMohammed / help
12mo ago
Import type: css ?
©TriMoon™©©TriMoon™ / help
14mo ago
JSDoc inline import with Deno LSP does not find or apply type from npm package
tacoTtaco / help
15mo ago