Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 421 Bytes

no-namespace.md

File metadata and controls

24 lines (16 loc) · 421 Bytes

import/no-namespace

Reports if namespace import is used.

Rule Details

Valid:

import defaultExport from './foo'
import { a, b }  from './bar'
import defaultExport, { a, b }  from './foobar'

...whereas here imports will be reported:

import * as foo from 'foo';
import defaultExport, * as foo from 'foo';

When Not To Use It

If you want to use namespaces, you don't want to use this rule.