Skip to main content

js/useDefaultImportBasename

MISSING DOCUMENTATION

Examples

Invalid

import foo from './bar';

 file.ts:1 lint/js/useDefaultImportBasename ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  Use the basename bar, or Bar when importing the default.

    import foo from './bar';
    ^^^^^^^^^^^^^^^^^^^^^^^^

  If you really meant to use a named import, use the following:

    import {default as foo}

Valid

import foo from './foo';