Skip to content

import/no-default-export Restriction

What it does

Forbid a module to have a default exports. This help your editor to provide better auto imports.

Examples

Examples of incorrect code for this rule:

javascript
export default 'bar';

const foo = 'foo';
export { foo as default }

Examples of correct code for this rule:

javascript
export const foo = "foo";
export const bar = "bar";

References

Released under the MIT License.