---
source: crates/oxc_linter/src/tester.rs
expression: no_named_as_default_member
---
  ⚠ eslint-plugin-import(no-named-as-default-member): "baz" also has a named export "a"
   ╭─[index.js:1:1]
 1 │ import baz from "./named-exports"; const a = baz.a;
   ·                                              ─────
   ╰────
  help: Check if you meant to write `import {a} from "./named-exports"`

  ⚠ eslint-plugin-import(no-named-as-default-member): "baz" also has a named export "a"
   ╭─[index.js:1:1]
 1 │ import baz from "./named-exports"; const a = baz["a"];
   ·                                              ────────
   ╰────
  help: Check if you meant to write `import {a} from "./named-exports"`

  ⚠ eslint-plugin-import(no-named-as-default-member): "baz" also has a named export "a"
   ╭─[index.js:1:1]
 1 │ import baz from "./named-exports"; baz.a();
   ·                                    ─────
   ╰────
  help: Check if you meant to write `import {a} from "./named-exports"`

  ⚠ eslint-plugin-import(no-named-as-default-member): "baz" also has a named export "a"
   ╭─[index.js:2:1]
 2 │         {
 3 │             const a = baz.a;
   ·                       ─────
 4 │         }
   ╰────
  help: Check if you meant to write `import {a} from "./named-exports"`

  ⚠ eslint-plugin-import(no-named-as-default-member): "baz" also has a named export "a"
   ╭─[index.js:1:1]
 1 │ import baz, { bar } from "./named-exports"; const {a} = baz
   ·                                                   ─────────
   ╰────
  help: Check if you meant to write `import {a} from "./named-exports"`

  ⚠ eslint-plugin-import(no-named-as-default-member): "baz" also has a named export "foo"
   ╭─[index.js:1:1]
 1 │ import baz from "./named-and-default-export"; const {foo: _foo} = baz
   ·                                                     ─────────────────
   ╰────
  help: Check if you meant to write `import {foo} from "./named-and-default-export"`


