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

[Maintenance] Enforce use of absolute imports using import aliases #161

Open
2 tasks done
devtobi opened this issue Aug 7, 2024 · 0 comments
Open
2 tasks done

[Maintenance] Enforce use of absolute imports using import aliases #161

devtobi opened this issue Aug 7, 2024 · 0 comments
Labels
Priority: Low The issue contains work with low priority. Template: Frontend Issues regarding the frontend template. Template: Webcomponent Issues regarding the webcomponent template. Type: Maintenance The issue contains maintenance work.

Comments

@devtobi
Copy link
Member

devtobi commented Aug 7, 2024

Relevant template

refarch-frontend, refarch-webcomponent

Problem description (optional)

Currently using relative or absolute imports is allowed in frontend projects.
As vite provides the alias functionality to the src folder using @, we should always use this import style when possible.
There is tooling like https://github.com/dword-design/eslint-plugin-import-alias which enforces the usage.

Desired solution

A solution for ESLint to enforce the use of absolute imports via aliases.

Considered alternatives (optional)

No response

Additional context (optional)

No response

No duplicate

  • I confirm that this issue is not a duplicate

Code of Conduct

  • I agree to follow this project's Code of Conduct
@devtobi devtobi added Template: Webcomponent Issues regarding the webcomponent template. Template: Frontend Issues regarding the frontend template. Type: Maintenance The issue contains maintenance work. Priority: Low The issue contains work with low priority. labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low The issue contains work with low priority. Template: Frontend Issues regarding the frontend template. Template: Webcomponent Issues regarding the webcomponent template. Type: Maintenance The issue contains maintenance work.
Projects
Status: Blocked
Development

No branches or pull requests

1 participant