diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 79a552ea9d..9acad8ead7 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -5,7 +5,7 @@ import reactRefresh from "eslint-plugin-react-refresh"; import tseslint from "typescript-eslint"; export default tseslint.config( - { ignores: ["dist"] }, + { ignores: ["dist", "coverage"] }, { extends: [js.configs.recommended, ...tseslint.configs.recommended], files: ["**/*.{ts,tsx}"], @@ -24,5 +24,5 @@ export default tseslint.config( { allowConstantExport: true }, ], }, - }, + } ); diff --git a/frontend/src/components/PasswordTextField/index.tsx b/frontend/src/components/PasswordTextField/index.tsx index 449b5be5bf..604d0ddb46 100644 --- a/frontend/src/components/PasswordTextField/index.tsx +++ b/frontend/src/components/PasswordTextField/index.tsx @@ -29,7 +29,7 @@ const PasswordTextField: React.FC = ({ }) => { const validatePasswordError = ( passwordVal: boolean, - password: string, + password: string ): boolean => { return passwordVal ? password.length < 8 || @@ -44,7 +44,7 @@ const PasswordTextField: React.FC = ({ const comparePasswordError = ( isMatch: boolean, password: string, - passwordToMatch: string | undefined, + passwordToMatch: string | undefined ): boolean => { return isMatch ? password != passwordToMatch : false; }; @@ -65,7 +65,7 @@ const PasswordTextField: React.FC = ({ validatePasswordError(passwordVal, password) || comparePasswordError(isMatch, password, passwordToMatch) || checkEmptyError(password) - ), + ) ); }, [passwordVal, isMatch, password, passwordToMatch, setValidity]); @@ -74,13 +74,13 @@ const PasswordTextField: React.FC = ({ const handleClickShowPassword = () => setShowPassword((show) => !show); const handleMouseDownPassword = ( - event: React.MouseEvent, + event: React.MouseEvent ) => { event.preventDefault(); }; const handleMouseUpPassword = ( - event: React.MouseEvent, + event: React.MouseEvent ) => { event.preventDefault(); }; @@ -93,7 +93,7 @@ const PasswordTextField: React.FC = ({ validatePasswordError(passwordVal, val) || comparePasswordError(isMatch, val, passwordToMatch) || checkEmptyError(val) - ), + ) ); }; @@ -156,9 +156,9 @@ const PasswordTextField: React.FC = ({ > Password must contain at least 1 digit - {/*eslint-disable-next-line no-useless-escape*/} ({ color: theme.palette.success.main })} + // eslint-disable-next-line no-useless-escape error={!/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(password)} > Password must contain at least 1 special character