Skip to content

Commit

Permalink
fix SonarQube spacing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
YotaYota committed Nov 7, 2024
1 parent f67b3ef commit 23b05be
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"rules": {
"camelcase": "warn",
"eqeqeq": "warn",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": [
"warn",
{
"some": ["htmlFor", "nested"]
}
],
"no-console": "warn",
"no-lone-block": "off", // conflicts with setState
"prettier/prettier": ["error"],
Expand Down
28 changes: 14 additions & 14 deletions public/components/Login/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ function LoginForm({ handleSubmit, setValue, formValues, errorMessage }) {
<form>
<label htmlFor="login-form-email" className="title">
Email
<input
id="login-form-email"
type="email"
name="email"
onChange={handleInput}
required
/>
</label>
<input
id="login-form-email"
type="email"
name="email"
onChange={handleInput}
required
/>
<label htmlFor="login-form-password" className="title">
Password
<input
id="login-form-password"
type="password"
name="password"
onChange={handleInput}
required
/>
</label>
<input
id="login-form-password"
type="password"
name="password"
onChange={handleInput}
required
/>
<p className="title error">{errorMessage}</p>
<button className="submit" type="submit" onClick={handleClick}>
Login
Expand Down

0 comments on commit 23b05be

Please sign in to comment.