chore: add ESLint configuration for api and web packages
Some checks failed
CI / test (push) Failing after 43s
Some checks failed
CI / test (push) Failing after 43s
- Introduced ESLint configuration files for both api and web packages to enforce coding standards. - Updated MinioService and TokenService to improve error handling and type definitions. - Refactored localStorage access in web components to use window.localStorage for consistency. - Enhanced ESLint rules in base configuration to improve code quality and maintainability.
This commit is contained in:
parent
a1590e7228
commit
857ffcd6b4
14 changed files with 46 additions and 38 deletions
|
@ -56,8 +56,8 @@ export function RegisterForm(props: RegisterFormProps) {
|
|||
|
||||
if (result.data?.register) {
|
||||
const { accessToken, user } = result.data.register;
|
||||
localStorage.setItem('token', accessToken);
|
||||
localStorage.setItem('userId', user.id);
|
||||
window.localStorage.setItem('token', accessToken);
|
||||
window.localStorage.setItem('userId', user.id);
|
||||
props.onRegisterSuccess(accessToken, user.id);
|
||||
} else {
|
||||
setError('Registration failed: No data received from server');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue