feat: added biome, fixed input hydration issue from uncontrolled input being used as controlled input

This commit is contained in:
Hyteq
2025-06-23 08:55:55 +03:00
parent e73e3506fc
commit 2bb347f1ae
2 changed files with 35 additions and 1 deletions

View File

@ -16,7 +16,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
type, type,
showPassword, showPassword,
onShowPasswordChange, onShowPasswordChange,
value = "", value,
...props ...props
}, },
ref ref

34
biome.json Normal file
View File

@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}