Skip to content

import/default Correctness

What it does

If a default import is requested, this rule will report if there is no default export in the imported module.

Example

javascript
// ./bar.js
export function bar() {
  return null;
}

// ./foo.js
import bar from "./bar"; // no default export found in ./bar

References

Released under the MIT License.