diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalid.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalid.js.snap index 05e6553a2f09..e9ba6f26f703 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalid.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalid.js.snap @@ -46,7 +46,7 @@ a+Math.pow(b, c)+d # Diagnostics ``` -invalid.js:1:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:1:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -66,7 +66,7 @@ invalid.js:1:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━ ``` ``` -invalid.js:2:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:2:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -88,7 +88,7 @@ invalid.js:2:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━ ``` ``` -invalid.js:5:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:5:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -111,7 +111,7 @@ invalid.js:5:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━ ``` ``` -invalid.js:6:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:6:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -135,7 +135,7 @@ invalid.js:6:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━ ``` ``` -invalid.js:7:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:7:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -159,7 +159,7 @@ invalid.js:7:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━ ``` ``` -invalid.js:8:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:8:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -183,7 +183,7 @@ invalid.js:8:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━ ``` ``` -invalid.js:9:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:9:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -207,7 +207,7 @@ invalid.js:9:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━ ``` ``` -invalid.js:10:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:10:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -231,7 +231,7 @@ invalid.js:10:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:13:9 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:13:9 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -254,7 +254,7 @@ invalid.js:13:9 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:14:4 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:14:4 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -278,7 +278,7 @@ invalid.js:14:4 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:15:6 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:15:6 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -302,7 +302,7 @@ invalid.js:15:6 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:16:19 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:16:19 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -326,7 +326,7 @@ invalid.js:16:19 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:17:8 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:17:8 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -350,7 +350,7 @@ invalid.js:17:8 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:18:25 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:18:25 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -374,7 +374,7 @@ invalid.js:18:25 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:19:4 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:19:4 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -398,7 +398,7 @@ invalid.js:19:4 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:22:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:22:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -421,7 +421,7 @@ invalid.js:22:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:23:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:23:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -445,7 +445,7 @@ invalid.js:23:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:26:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:26:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -468,7 +468,7 @@ invalid.js:26:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:27:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:27:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -492,7 +492,7 @@ invalid.js:27:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:28:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:28:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -516,7 +516,7 @@ invalid.js:28:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:29:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:29:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -540,7 +540,7 @@ invalid.js:29:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:30:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:30:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -564,7 +564,7 @@ invalid.js:30:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:33:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:33:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -587,7 +587,7 @@ invalid.js:33:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━ ``` ``` -invalid.js:36:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid.js:36:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidAdjacentTokens.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidAdjacentTokens.js.snap index 72a433a0e526..24cf98470d6e 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidAdjacentTokens.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidAdjacentTokens.js.snap @@ -25,7 +25,7 @@ Math.pow(a, b)**Math.pow(c, d) # Diagnostics ``` -invalidAdjacentTokens.js:2:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:2:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -47,7 +47,7 @@ invalidAdjacentTokens.js:2:3 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidAdjacentTokens.js:3:5 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:3:5 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -71,7 +71,7 @@ invalidAdjacentTokens.js:3:5 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidAdjacentTokens.js:12:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:12:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -94,7 +94,7 @@ invalidAdjacentTokens.js:12:2 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidAdjacentTokens.js:13:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:13:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -118,7 +118,7 @@ invalidAdjacentTokens.js:13:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidAdjacentTokens.js:13:18 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:13:18 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -142,7 +142,7 @@ invalidAdjacentTokens.js:13:18 lint/nursery/useExponentiation FIXABLE ━━ ``` ``` -invalidAdjacentTokens.js:14:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:14:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -166,7 +166,7 @@ invalidAdjacentTokens.js:14:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidAdjacentTokens.js:14:10 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:14:10 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -190,7 +190,7 @@ invalidAdjacentTokens.js:14:10 lint/nursery/useExponentiation FIXABLE ━━ ``` ``` -invalidAdjacentTokens.js:14:26 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:14:26 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -214,7 +214,7 @@ invalidAdjacentTokens.js:14:26 lint/nursery/useExponentiation FIXABLE ━━ ``` ``` -invalidAdjacentTokens.js:15:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:15:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -236,7 +236,7 @@ invalidAdjacentTokens.js:15:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidAdjacentTokens.js:15:17 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidAdjacentTokens.js:15:17 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js.snap index 7ecff81c3831..1926c6f67eaf 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js.snap @@ -20,7 +20,7 @@ expression: invalidBaseExpoentHigherPrecedence.js # Diagnostics ``` -invalidBaseExpoentHigherPrecedence.js:2:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:2:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -42,7 +42,7 @@ invalidBaseExpoentHigherPrecedence.js:2:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:3:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:3:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -66,7 +66,7 @@ invalidBaseExpoentHigherPrecedence.js:3:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:4:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:4:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -90,7 +90,7 @@ invalidBaseExpoentHigherPrecedence.js:4:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:5:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:5:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -114,7 +114,7 @@ invalidBaseExpoentHigherPrecedence.js:5:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:6:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:6:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -138,7 +138,7 @@ invalidBaseExpoentHigherPrecedence.js:6:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:7:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:7:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -162,7 +162,7 @@ invalidBaseExpoentHigherPrecedence.js:7:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:8:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:8:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -186,7 +186,7 @@ invalidBaseExpoentHigherPrecedence.js:8:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:9:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:9:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -210,7 +210,7 @@ invalidBaseExpoentHigherPrecedence.js:9:2 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentHigherPrecedence.js:10:2 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidBaseExpoentHigherPrecedence.js:10:2 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js.snap index d77df6b1d048..f29bfb0e4b47 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js.snap @@ -22,7 +22,7 @@ function *f() { Math.pow(yield, yield) } # Diagnostics ``` -invalidBaseExpoentLowerPrecedence.js:2:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:2:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -44,7 +44,7 @@ invalidBaseExpoentLowerPrecedence.js:2:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:3:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:3:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -68,7 +68,7 @@ invalidBaseExpoentLowerPrecedence.js:3:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:4:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:4:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -92,7 +92,7 @@ invalidBaseExpoentLowerPrecedence.js:4:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:5:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:5:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -116,7 +116,7 @@ invalidBaseExpoentLowerPrecedence.js:5:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:6:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:6:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -140,7 +140,7 @@ invalidBaseExpoentLowerPrecedence.js:6:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:7:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:7:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -164,7 +164,7 @@ invalidBaseExpoentLowerPrecedence.js:7:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:8:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:8:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -188,7 +188,7 @@ invalidBaseExpoentLowerPrecedence.js:8:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:9:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:9:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -212,7 +212,7 @@ invalidBaseExpoentLowerPrecedence.js:9:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidBaseExpoentLowerPrecedence.js:10:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:10:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -236,7 +236,7 @@ invalidBaseExpoentLowerPrecedence.js:10:1 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentLowerPrecedence.js:11:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:11:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -260,7 +260,7 @@ invalidBaseExpoentLowerPrecedence.js:11:1 lint/nursery/useExponentiation FIXABL ``` ``` -invalidBaseExpoentLowerPrecedence.js:12:17 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidBaseExpoentLowerPrecedence.js:12:17 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithHigherPrecedence.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithHigherPrecedence.js.snap index bca4b266d47d..4369d8cd28c3 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithHigherPrecedence.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithHigherPrecedence.js.snap @@ -30,7 +30,7 @@ obj[Math.pow(a, b)] # Diagnostics ``` -invalidParentsWithHigherPrecedence.js:1:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:1:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -50,7 +50,7 @@ invalidParentsWithHigherPrecedence.js:1:3 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:2:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:2:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -72,7 +72,7 @@ invalidParentsWithHigherPrecedence.js:2:3 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:3:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:3:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -96,7 +96,7 @@ invalidParentsWithHigherPrecedence.js:3:3 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:4:8 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:4:8 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -120,7 +120,7 @@ invalidParentsWithHigherPrecedence.js:4:8 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:5:6 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:5:6 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -144,7 +144,7 @@ invalidParentsWithHigherPrecedence.js:5:6 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:6:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:6:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -168,7 +168,7 @@ invalidParentsWithHigherPrecedence.js:6:1 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:7:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:7:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -192,7 +192,7 @@ invalidParentsWithHigherPrecedence.js:7:1 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:8:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:8:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -216,7 +216,7 @@ invalidParentsWithHigherPrecedence.js:8:1 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithHigherPrecedence.js:11:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:11:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -239,7 +239,7 @@ invalidParentsWithHigherPrecedence.js:11:3 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithHigherPrecedence.js:12:8 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:12:8 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -263,7 +263,7 @@ invalidParentsWithHigherPrecedence.js:12:8 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithHigherPrecedence.js:13:3 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:13:3 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -287,7 +287,7 @@ invalidParentsWithHigherPrecedence.js:13:3 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithHigherPrecedence.js:14:8 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:14:8 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -311,7 +311,7 @@ invalidParentsWithHigherPrecedence.js:14:8 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithHigherPrecedence.js:15:7 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:15:7 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -335,7 +335,7 @@ invalidParentsWithHigherPrecedence.js:15:7 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithHigherPrecedence.js:16:12 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:16:12 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -359,7 +359,7 @@ invalidParentsWithHigherPrecedence.js:16:12 lint/nursery/useExponentiation FIXA ``` ``` -invalidParentsWithHigherPrecedence.js:17:7 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:17:7 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -383,7 +383,7 @@ invalidParentsWithHigherPrecedence.js:17:7 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithHigherPrecedence.js:18:12 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:18:12 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -407,7 +407,7 @@ invalidParentsWithHigherPrecedence.js:18:12 lint/nursery/useExponentiation FIXA ``` ``` -invalidParentsWithHigherPrecedence.js:19:5 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:19:5 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -431,7 +431,7 @@ invalidParentsWithHigherPrecedence.js:19:5 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithHigherPrecedence.js:20:7 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithHigherPrecedence.js:20:7 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithLowerPrecedence.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithLowerPrecedence.js.snap index 6be437cbfddb..8d8ad59a9d41 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithLowerPrecedence.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidParentsWithLowerPrecedence.js.snap @@ -34,7 +34,7 @@ a, Math.pow(b, c), d # Diagnostics ``` -invalidParentsWithLowerPrecedence.js:2:5 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:2:5 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -56,7 +56,7 @@ invalidParentsWithLowerPrecedence.js:2:5 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidParentsWithLowerPrecedence.js:4:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:4:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -80,7 +80,7 @@ invalidParentsWithLowerPrecedence.js:4:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidParentsWithLowerPrecedence.js:6:5 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:6:5 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -104,7 +104,7 @@ invalidParentsWithLowerPrecedence.js:6:5 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidParentsWithLowerPrecedence.js:8:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:8:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -128,7 +128,7 @@ invalidParentsWithLowerPrecedence.js:8:1 lint/nursery/useExponentiation FIXABLE ``` ``` -invalidParentsWithLowerPrecedence.js:10:5 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:10:5 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -152,7 +152,7 @@ invalidParentsWithLowerPrecedence.js:10:5 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithLowerPrecedence.js:12:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:12:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -176,7 +176,7 @@ invalidParentsWithLowerPrecedence.js:12:1 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithLowerPrecedence.js:14:7 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:14:7 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -200,7 +200,7 @@ invalidParentsWithLowerPrecedence.js:14:7 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithLowerPrecedence.js:16:5 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:16:5 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -224,7 +224,7 @@ invalidParentsWithLowerPrecedence.js:16:5 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithLowerPrecedence.js:18:5 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:18:5 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -248,7 +248,7 @@ invalidParentsWithLowerPrecedence.js:18:5 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithLowerPrecedence.js:20:6 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:20:6 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -272,7 +272,7 @@ invalidParentsWithLowerPrecedence.js:20:6 lint/nursery/useExponentiation FIXABL ``` ``` -invalidParentsWithLowerPrecedence.js:22:23 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:22:23 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -296,7 +296,7 @@ invalidParentsWithLowerPrecedence.js:22:23 lint/nursery/useExponentiation FIXAB ``` ``` -invalidParentsWithLowerPrecedence.js:24:4 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━ +invalidParentsWithLowerPrecedence.js:24:4 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidUnaryExpression.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidUnaryExpression.js.snap index 0d6d7b9e262a..e34c0be71e73 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidUnaryExpression.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidUnaryExpression.js.snap @@ -19,7 +19,7 @@ async () => Math.pow(a, await b) # Diagnostics ``` -invalidUnaryExpression.js:2:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:2:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -41,7 +41,7 @@ invalidUnaryExpression.js:2:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidUnaryExpression.js:3:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:3:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -65,7 +65,7 @@ invalidUnaryExpression.js:3:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidUnaryExpression.js:4:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:4:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -89,7 +89,7 @@ invalidUnaryExpression.js:4:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidUnaryExpression.js:5:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:5:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -113,7 +113,7 @@ invalidUnaryExpression.js:5:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidUnaryExpression.js:6:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:6:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -137,7 +137,7 @@ invalidUnaryExpression.js:6:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidUnaryExpression.js:7:1 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:7:1 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -161,7 +161,7 @@ invalidUnaryExpression.js:7:1 lint/nursery/useExponentiation FIXABLE ━━━ ``` ``` -invalidUnaryExpression.js:8:13 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:8:13 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -185,7 +185,7 @@ invalidUnaryExpression.js:8:13 lint/nursery/useExponentiation FIXABLE ━━ ``` ``` -invalidUnaryExpression.js:9:13 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidUnaryExpression.js:9:13 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. diff --git a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidWithoutAutofix.js.snap b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidWithoutAutofix.js.snap index 2031a0e4c844..5febba49cea6 100644 --- a/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidWithoutAutofix.js.snap +++ b/crates/rome_js_analyze/tests/specs/nursery/useExponentiationOperator/invalidWithoutAutofix.js.snap @@ -29,7 +29,7 @@ Math.pow(/**/a/**/, /**/b/**/) # Diagnostics ``` -invalidWithoutAutofix.js:2:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:2:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -43,7 +43,7 @@ invalidWithoutAutofix.js:2:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:3:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:3:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -58,7 +58,7 @@ invalidWithoutAutofix.js:3:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:4:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:4:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -73,7 +73,7 @@ invalidWithoutAutofix.js:4:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:5:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:5:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -88,7 +88,7 @@ invalidWithoutAutofix.js:5:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:8:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:8:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -102,7 +102,7 @@ invalidWithoutAutofix.js:8:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:9:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:9:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -117,7 +117,7 @@ invalidWithoutAutofix.js:9:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:10:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:10:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -132,7 +132,7 @@ invalidWithoutAutofix.js:10:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:11:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:11:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -147,7 +147,7 @@ invalidWithoutAutofix.js:11:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:14:14 lint/nursery/useExponentiation FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:14:14 lint/nursery/useExponentiationOperator FIXABLE ━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -170,7 +170,7 @@ invalidWithoutAutofix.js:14:14 lint/nursery/useExponentiation FIXABLE ━━ ``` ``` -invalidWithoutAutofix.js:15:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:15:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -185,7 +185,7 @@ invalidWithoutAutofix.js:15:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:16:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:16:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -200,7 +200,7 @@ invalidWithoutAutofix.js:16:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:17:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:17:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -215,7 +215,7 @@ invalidWithoutAutofix.js:17:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:18:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:18:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'. @@ -230,7 +230,7 @@ invalidWithoutAutofix.js:18:1 lint/nursery/useExponentiation ━━━━━━ ``` ``` -invalidWithoutAutofix.js:19:1 lint/nursery/useExponentiation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidWithoutAutofix.js:19:1 lint/nursery/useExponentiationOperator ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use the '**' operator instead of 'Math.pow'.