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