[Maintenance] Enforce use of absolute imports using import aliases #161
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.
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
Code of Conduct
The text was updated successfully, but these errors were encountered: