--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidFunction.cjs --- # Input ```cjs function test() { "use strict"; "use strict"; } ``` # Diagnostics ``` invalidFunction.cjs:3:2 lint/suspicious/noRedundantUseStrict FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Redundant use strict directive. 1 │ function test() { 2 │ "use strict"; > 3 │ "use strict"; │ ^^^^^^^^^^^^^ 4 │ } 5 │ i This outer use strict directive already enables strict mode. 1 │ function test() { > 2 │ "use strict"; │ ^^^^^^^^^^^^^ 3 │ "use strict"; 4 │ } i Safe fix: Remove the redundant use strict directive. 1 1 │ function test() { 2 2 │ "use strict"; 3 │ - → "use·strict"; 4 │ - } 3 │ + → } 5 4 │ ```