Query module DubiousImport

name
Dubious import
description
Importing a symbol from a module that does not export it most likely indicates a bug.
kind
problem
problem.severity
warning
id
js/node/import-without-export
tags
reliability maintainability frameworks/node.js
precision
low

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

hasUntrackedExports

Holds if m is likely to have exports that are not picked up by the analysis.

propAccessOn

Holds if the base expression of pacc could refer to the result of a require import of module m.

propDefinedOnRequire

Holds if there is an assignment anywhere defining prop on the result of a require import of module m.