You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a dependency (express in my example) is available in devDependencies, typescript import type syntax should not trigger n/no-unpublished-import error, as the dependency will not be imported at runtime.
importtype{RequestHandler}from'express'// error "express" is not published n/no-unpublished-importexportconsthandler: RequestHandler=(req,response,next)=>{console.log(req.url)response.json({})next()}
The text was updated successfully, but these errors were encountered:
Toilal
added a commit
to Toilal/eslint-plugin-n
that referenced
this issue
Jan 16, 2023
When a dependency (express in my example) is available in devDependencies, typescript
import type
syntax should not triggern/no-unpublished-import
error, as the dependency will not be imported at runtime.The text was updated successfully, but these errors were encountered: