Skip to content

Latest commit

Β 

History

History
43 lines (30 loc) Β· 1.12 KB

File metadata and controls

43 lines (30 loc) Β· 1.12 KB

require-module-specifiers

πŸ“ Require non-empty specifier list in import and export statements.

πŸ’Ό This rule is enabled in the following configs: βœ… recommended, β˜‘οΈ unopinionated.

πŸ”§πŸ’‘ This rule is automatically fixable by the --fix CLI option and manually fixable by editor suggestions.

Enforce non-empty specifier list in import and export statements. Use a side-effect import if needed, or remove the statement.

Examples

// ❌
import {} from 'foo';

// βœ…
import 'foo';
// ❌
import foo, {} from 'foo';

// βœ…
import foo from 'foo';
// ❌
export {} from 'foo';

// βœ…
import 'foo';
// ❌
export {}