Skip to content

Commit ce30232

Browse files
committed
FIx linting
1 parent 1d054e1 commit ce30232

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

frontend/eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import reactRefresh from "eslint-plugin-react-refresh";
55
import tseslint from "typescript-eslint";
66

77
export default tseslint.config(
8-
{ ignores: ["dist"] },
8+
{ ignores: ["dist", "coverage"] },
99
{
1010
extends: [js.configs.recommended, ...tseslint.configs.recommended],
1111
files: ["**/*.{ts,tsx}"],
@@ -24,5 +24,5 @@ export default tseslint.config(
2424
{ allowConstantExport: true },
2525
],
2626
},
27-
},
27+
}
2828
);

frontend/src/components/PasswordTextField/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const PasswordTextField: React.FC<PasswordTextFieldProps> = ({
2929
}) => {
3030
const validatePasswordError = (
3131
passwordVal: boolean,
32-
password: string,
32+
password: string
3333
): boolean => {
3434
return passwordVal
3535
? password.length < 8 ||
@@ -44,7 +44,7 @@ const PasswordTextField: React.FC<PasswordTextFieldProps> = ({
4444
const comparePasswordError = (
4545
isMatch: boolean,
4646
password: string,
47-
passwordToMatch: string | undefined,
47+
passwordToMatch: string | undefined
4848
): boolean => {
4949
return isMatch ? password != passwordToMatch : false;
5050
};
@@ -65,7 +65,7 @@ const PasswordTextField: React.FC<PasswordTextFieldProps> = ({
6565
validatePasswordError(passwordVal, password) ||
6666
comparePasswordError(isMatch, password, passwordToMatch) ||
6767
checkEmptyError(password)
68-
),
68+
)
6969
);
7070
}, [passwordVal, isMatch, password, passwordToMatch, setValidity]);
7171

@@ -74,13 +74,13 @@ const PasswordTextField: React.FC<PasswordTextFieldProps> = ({
7474
const handleClickShowPassword = () => setShowPassword((show) => !show);
7575

7676
const handleMouseDownPassword = (
77-
event: React.MouseEvent<HTMLButtonElement>,
77+
event: React.MouseEvent<HTMLButtonElement>
7878
) => {
7979
event.preventDefault();
8080
};
8181

8282
const handleMouseUpPassword = (
83-
event: React.MouseEvent<HTMLButtonElement>,
83+
event: React.MouseEvent<HTMLButtonElement>
8484
) => {
8585
event.preventDefault();
8686
};
@@ -93,7 +93,7 @@ const PasswordTextField: React.FC<PasswordTextFieldProps> = ({
9393
validatePasswordError(passwordVal, val) ||
9494
comparePasswordError(isMatch, val, passwordToMatch) ||
9595
checkEmptyError(val)
96-
),
96+
)
9797
);
9898
};
9999

@@ -156,9 +156,9 @@ const PasswordTextField: React.FC<PasswordTextFieldProps> = ({
156156
>
157157
Password must contain at least 1 digit
158158
</FormHelperText>
159-
{/*eslint-disable-next-line no-useless-escape*/}
160159
<FormHelperText
161160
sx={(theme) => ({ color: theme.palette.success.main })}
161+
// eslint-disable-next-line no-useless-escape
162162
error={!/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(password)}
163163
>
164164
Password must contain at least 1 special character

0 commit comments

Comments
 (0)