require-module-specifiers
March 27, 2026 ยท View on GitHub
๐ 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 {}