Skip to content

Commit f0fba1d

Browse files
committed
refactor(input-otp): ignore Fragment error in eslint
1 parent c4743fe commit f0fba1d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
"@typescript-eslint/no-unused-vars": [
2727
"warn",
2828
{
29-
"varsIgnorePattern": "^h$"
29+
"varsIgnorePattern": "^(h|Fragment)$"
3030
}
3131
],
3232
"no-useless-catch": "off",

core/src/components/input-otp/input-otp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ export class InputOTP implements ComponentInterface {
684684
>
685685
<div role="group" aria-label="One-time password input" class="input-otp-group">
686686
{Array.from({ length }).map((_, index) => (
687-
<Fragment>
687+
<>
688688
<div class="native-wrapper">
689689
<input
690690
class="native-input"
@@ -708,7 +708,7 @@ export class InputOTP implements ComponentInterface {
708708
/>
709709
</div>
710710
{this.showSeparator(index) && <div class="input-otp-separator" />}
711-
</Fragment>
711+
</>
712712
))}
713713
</div>
714714
<div class="input-otp-description">

0 commit comments

Comments
 (0)