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

[Feature]:Use Absolute Imports in Jaeger-UI #2560

Open
yashpandey06 opened this issue Jan 7, 2025 · 2 comments
Open

[Feature]:Use Absolute Imports in Jaeger-UI #2560

yashpandey06 opened this issue Jan 7, 2025 · 2 comments

Comments

@yashpandey06
Copy link

yashpandey06 commented Jan 7, 2025

Requirement

Using absolute imports improves:

  • Code Readability: No more long and complex relative paths.
  • Maintainability: Refactoring becomes easier as file paths are consistent.
  • Scalability: Simplifies project navigation in large codebases.
import Button from '../../components/Button';
import Header from '../../../shared/Header';

Absolute imports
import Button from 'components/Button';
import Header from 'shared/Header';


### Problem

The problem with relative imports in React projects arises as the codebase grows larger and more complex.
@yashpandey06 yashpandey06 changed the title [Feature]: [Feature]:Use Absolute Imports in Jaeger-UI Jan 7, 2025
@yurishkuro
Copy link
Member

I agree in principle, but I don't think it's a task we should be pursuing for its own sake, since it's going to take a lot of effort which could instead go into solving more pressing issues like the stale dependencies.

@yashpandey06
Copy link
Author

yashpandey06 commented Jan 7, 2025

@yurishkuro Yeah , I understand, may be we can plan for this in future !

Thanks for your view

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

No branches or pull requests

2 participants