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

Use absolute imports in files . #777

Open
yashpandey06 opened this issue Jan 3, 2025 · 3 comments
Open

Use absolute imports in files . #777

yashpandey06 opened this issue Jan 3, 2025 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@yashpandey06
Copy link

yashpandey06 commented Jan 3, 2025

What would you like to be added:
Would enhance the code structure and with proper vision of directory

Why is this needed:
Code enhancement

Examples :
Before:
import MyComponent from '../../components/MyComponent';
import utils from '../utils';

After:

import MyComponent from 'components/MyComponent';
import utils from 'utils';

In may files we have followed relative imports , i would propose to use absolute imports

@yashpandey06 yashpandey06 added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 3, 2025
@RainbowMango
Copy link
Member

Sorry, I don't get what you mean. Can you elaborate on it?

@yashpandey06
Copy link
Author

yashpandey06 commented Jan 3, 2025

Sorry, I don't get what you mean. Can you elaborate on it?

Updated pr description, please review it once.

@RainbowMango
Copy link
Member

Provide a code link? and explain the benefits a little bit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants