refactor(frontend): move to and enforce absolute imports - #8732
Conversation
Assisted-by: ClaudeCode:claude-opus-4.8 Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
SebastianKrupinski
left a comment
There was a problem hiding this comment.
Thank goodness for eslint fix!
|
Bypassed failed PHP tests as the failures are unrelated |
|
I am curious as this is non standard behavior and always will require tooling plugins, so there must be a benefit larger than that? |
For me those two points are the main benefits of absolute imports. Also support of |
The "@/" is supported out of the box with webpack/vite/ts/etc without plug-ins... the plugins are only for usage enforcement. The main point to it stop the dot insanity "../../../" in some places we had "../../../../../../" makes it hard to figure out which folder you are referencing |
I was more referring to actual standards like ECMA for ESM and thus general tooling support. |
Enforce absolute imports as they were often request in PR reviews ^^
Example before
Example after
🤖 AI (if applicable)
eslint.config.mjsvi.mockwere done by search and replace