-
Notifications
You must be signed in to change notification settings - Fork 7
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
Import Helper does not respect eslint
/prettier
rules
#97
Comments
Sorry, no. There is only one setting from_quote I think, you can configure your editor to apply |
Yes, I use that workaround, but I hoped we could insert the import correctly formatted. I looked at the code, but I don’t code in Python. I’d like to change the hard-coded formatting to my preffered one (in my fork), but I was lost. Could you point me to the rignt file/line? Thanks. 😉 |
Actually there is no formatting in python code. You need to check On the other hand I see that setting related to space before brace is exists there But no setting related to So, you need:
|
Allow/disallow insert space after opening and before closing non empty braces See: #97
Thanks for being so fast, @unlight! However, I could not make it work. Package Control automatically upgraded the package to {
"autocomplete_auto_import": true,
"insert_space_in_braces": false,
"no_semicolon": true
} When I add an import using Import Helper, it still added spaces in brackets and semicolons at the end of the line. I tested this in a third-party project though, where |
Where do you keep these settings? Package/User/import_helper.settings or in sublime-project file? |
I open the settings file via |
Sorry, but I cant reproduce this. |
I’ve just checked it and now it works. Maybe it required a ST restart, which I didn’t do yesterday. Anyway, it seems like it does not check the format of previously imported stuff, e.g. |
@unlight, I think we can close this issue. Although the original request is not fulfilled, my needs are satisfied. Thanks! 🙏 |
I prefer no spaces after
{
and before}
, and no semicolon after commands. I have seteslint
andprettier
accordingly.However, I could not find a way to make Import Helper respect these settings. Is there a way to configure this?
Thanks for this great plugin! 😉
The text was updated successfully, but these errors were encountered: