--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid_with_export.js --- # Input ```jsx function f() { return 0 } export const A = f(); export {} ``` # Diagnostics ``` invalid_with_export.js:3:1 lint/complexity/noUselessEmptyExport FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This empty export is useless because there's another export or import. 1 │ function f() { return 0 } 2 │ export const A = f(); > 3 │ export {} │ ^^^^^^^^^ i This export makes useless the empty export. 1 │ function f() { return 0 } > 2 │ export const A = f(); │ ^^^^^^ 3 │ export {} i Safe fix: Remove this useless empty export. 1 1 │ function f() { return 0 } 2 2 │ export const A = f(); 3 │ - export·{} ```