--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidWithoutAutofix.js --- # Input ```jsx // shouldn't autofix if the call doesn't have exactly two arguments Math.pow() Math.pow(a) Math.pow(a, b, c) Math.pow(a, b, c, d) // shouldn't autofix if any of the arguments is spread Math.pow(...a) Math.pow(...a, b) Math.pow(a, ...b) Math.pow(a, b, ...c) ``` # Diagnostics ``` invalidWithoutAutofix.js:2:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 1 │ // shouldn't autofix if the call doesn't have exactly two arguments > 2 │ Math.pow() │ ^^^^^^^^^^ 3 │ Math.pow(a) 4 │ Math.pow(a, b, c) ``` ``` invalidWithoutAutofix.js:3:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 1 │ // shouldn't autofix if the call doesn't have exactly two arguments 2 │ Math.pow() > 3 │ Math.pow(a) │ ^^^^^^^^^^^ 4 │ Math.pow(a, b, c) 5 │ Math.pow(a, b, c, d) ``` ``` invalidWithoutAutofix.js:4:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 2 │ Math.pow() 3 │ Math.pow(a) > 4 │ Math.pow(a, b, c) │ ^^^^^^^^^^^^^^^^^ 5 │ Math.pow(a, b, c, d) 6 │ ``` ``` invalidWithoutAutofix.js:5:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 3 │ Math.pow(a) 4 │ Math.pow(a, b, c) > 5 │ Math.pow(a, b, c, d) │ ^^^^^^^^^^^^^^^^^^^^ 6 │ 7 │ // shouldn't autofix if any of the arguments is spread ``` ``` invalidWithoutAutofix.js:8:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 7 │ // shouldn't autofix if any of the arguments is spread > 8 │ Math.pow(...a) │ ^^^^^^^^^^^^^^ 9 │ Math.pow(...a, b) 10 │ Math.pow(a, ...b) ``` ``` invalidWithoutAutofix.js:9:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 7 │ // shouldn't autofix if any of the arguments is spread 8 │ Math.pow(...a) > 9 │ Math.pow(...a, b) │ ^^^^^^^^^^^^^^^^^ 10 │ Math.pow(a, ...b) 11 │ Math.pow(a, b, ...c) ``` ``` invalidWithoutAutofix.js:10:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 8 │ Math.pow(...a) 9 │ Math.pow(...a, b) > 10 │ Math.pow(a, ...b) │ ^^^^^^^^^^^^^^^^^ 11 │ Math.pow(a, b, ...c) 12 │ ``` ``` invalidWithoutAutofix.js:11:1 lint/style/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. 9 │ Math.pow(...a, b) 10 │ Math.pow(a, ...b) > 11 │ Math.pow(a, b, ...c) │ ^^^^^^^^^^^^^^^^^^^^ 12 │ ```