π Require non-empty module attributes for imports and exports.
πΌ This rule is enabled in the following configs: β
recommended, βοΈ unopinionated.
π§ This rule is automatically fixable by the --fix CLI option.
Enforce non-empty attribute list in import/export statements and import() expressions.
// β
import foo from 'foo' with {};
// β
import foo from 'foo';// β
export {foo} from 'foo' with {};
// β
export {foo} from 'foo';// β
const foo = await import('foo', {});
// β
const foo = await import('foo');// β
const foo = await import('foo', {with: {}});
// β
const foo = await import('foo');