--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid_properties_value_shorthand.js --- # Input ```jsx const options = { normalize: parseFloat, parseInt, }; run(foo, options); ``` # Diagnostics ``` invalid_properties_value_shorthand.js:2:13 lint/style/useNumberNamespace FIXABLE ━━━━━━━━━━━━━━━━━ ! Use Number.parseFloat instead of the equivalent global. 1 │ const options = { > 2 │ normalize: parseFloat, │ ^^^^^^^^^^ 3 │ parseInt, 4 │ }; i ES2015 moved some globals into the Number namespace for consistency. i Safe fix: Use Number.parseFloat instead. 1 1 │ const options = { 2 │ - → normalize:·parseFloat, 2 │ + → normalize:·Number.parseFloat, 3 3 │ parseInt, 4 4 │ }; ```