Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUGGESTION]: Use src/ folder on frontend #218

Closed
dsousa12 opened this issue May 31, 2022 · 1 comment · Fixed by #219
Closed

[SUGGESTION]: Use src/ folder on frontend #218

dsousa12 opened this issue May 31, 2022 · 1 comment · Fixed by #219
Assignees
Milestone

Comments

@dsousa12
Copy link
Contributor

Summary

  • Create a src folder;
  • Set baseUrl on tsconfig.json to have a cleanner imports;

Motivation

Avoid have a lot of folders and files on root of frontend and to make the imports cleaner (without a bunch of ../)

@dsousa12
Copy link
Contributor Author

With this suggestion we can avoid ore imports like:

import { getAuthError } from '../../../errors/auth-messages';
import useUser from '../../../hooks/useUser';
import SchemaLoginForm from '../../../schema/schemaLoginForm';
import { toastState } from '../../../store/toast/atom/toast.atom';
import { LoginUser } from '../../../types/user/user';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant