Open lifeart opened 1 year ago
I need this feature as well
You can do that with rule option
...
"no-relative-import-paths/no-relative-import-paths": [
"warn",
{ "allowSameFolder": true, "rootDir": "app", "prefix": "my-application" }
]
...
@zecka thank you for your reply! According to naming, it seems it will be like {my-application}/{app}...
, and I need {my-application}/...
For ember projects, root dir is always
app
, but in app imports it's resolved from project name:Real dir:
app/services/login.ts
In-app alias:my-application/services/login.ts
At the moment there is no way to provide proper autofix config.