-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Considering internal files as external libs when using "baseUrl": "./src" on tsconfig #106
Comments
Hi! Regarding tsconfig.json: I thought a lot about adding automatic support for This section in the docs is interesting as well: https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping
Otherwise you’ll basically need to duplicate your baseUrl config in this plugin’s options, and possibly use Finally, if you already have a working |
Closing because I don’t think there’s anything I’d like to change, and there was no response to the |
Because im using this boilerplate: They removed the import/order config and added this package. I check it from time to time and i do as they do because they tend to take rigth decisions for DX. But in this case i have my custom baseurl so it does not work properly. I reverted it and kept using my config, but wanted to share it with you and add the config, in case you wanted to make it compatible for those cases also. But i totally understand your decision, and the package is a quick win for everyone not modifying the baseurl which is 99% of the people 👌 |
Hello!
I'm using
"baseUrl": "./src",
in my tsconfig file in order to import my modules without the annoying../......
thingsHowever this makes some weird sorting like these:
where all nut the two last ones are internal libs
Is there a way to fix this? thanks!
btw in case it helps, this eslintr config works properly:
The text was updated successfully, but these errors were encountered: