Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 7f9b7c0

Browse files
committed
chore: remove biome lint rule useExponentiationOperator
1 parent 1e9f473 commit 7f9b7c0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

biome.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"noUselessSwitchCase": "off"
2121
},
2222
"style": {
23-
"noUnusedTemplateLiteral": "off",
24-
"useExponentiationOperator": "off"
23+
"noUnusedTemplateLiteral": "off"
2524
},
2625
"a11y": {
2726
"noSvgWithoutTitle": "off"

packages/core/src/DateTimePicker/TimePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ const ClockComponent: FC<ClockComponentProps> = ({
311311
theta = theta > roundValue * (numbers.length - 1) ? 0 : theta
312312
if (innerNumbers.length > 0) {
313313
// Calculate distance from middlepoint, used to know if user is clicking on inner numbers.
314-
const distance = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2))
314+
const distance = Math.sqrt(dx ** 2 + dy ** 2)
315315
const clock = e.currentTarget.getBoundingClientRect()
316316
const distanceFromMiddle = distance / clock.width
317317
if (distanceFromMiddle < 0.32) {

0 commit comments

Comments
 (0)