Skip to content
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

Ignore intellij settings and use prettier code style #1675

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

steffenkleinle
Copy link
Member

Short description

I frequently have changes to my intellij setting files which is rather annoying as I sometimes commit them accidentally.

Proposed changes

  • Use code style from prettierrc
  • Add inspection profiles to gitignore

Side effects

None.

Testing

None.

Resolved issues

Fixes: None.

@steffenkleinle steffenkleinle changed the title Ignore intellij settings Use prettier code style Ignore intellij settings and use prettier code style Oct 9, 2024
.gitignore Outdated
node_modules
.idea/inspectionProfiles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we not want to share settings of this? Can't we agree on some settings and keep sharing this file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, I am okay with adding this, but I think this just defines whether eslint is run by IntelliJ and errors are shown in the editor. I just figured that sometimes manual configuration is needed as automatic eslint config might not work for everybody.

.idea/dataSources.xml Outdated Show resolved Hide resolved
Copy link
Member

@ztefanie ztefanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you are waiting for reviews on this, but I am not really happy with the solution you provided and i do currently have no time / priority in having a deeper look into this.

The solution i would prefer is

  • telling intellij to use code styled defined in es lint / prettier
  • autoformat on save
  • share all these settings for intellij with the whole team

@steffenkleinle
Copy link
Member Author

steffenkleinle commented Oct 23, 2024

I know you are waiting for reviews on this, but I am not really happy with the solution you provided

What exactly do you not like about this? This is just a small PR for me to finally get rid of all those uncommitted changes which are really annoying. I don't think this worsens behavior in comparison to the current state. Adding inspectionProfiles to .gitignore does not change IntelliJ settings for anyone. The adjusted code style is just for generated code from IntelliJ, e.g. auto imports and so on and would be needed in any case.

The solution i would prefer is

* telling intellij to use code styled defined in es lint / prettier

* autoformat on save

* share all these settings for intellij with the whole team

I definitely see the point and I think this might make sense, but I also see why someone would not want this. In any case, if you'd like additional things to be done, please create an issue for it. It does not really have anything to do with what I did here (except its also IntelliJ configuration).

@ztefanie
Copy link
Member

I know you are waiting for reviews on this, but I am not really happy with the solution you provided

What exactly do you not like about this? This is just a small PR for me to finally get rid of all those uncommitted changes which are really annoying. I don't think this worsens behavior in comparison to the current state. Adding inspectionProfiles to .gitignore does not change IntelliJ settings for anyone. The adjusted code style is just for generated code from IntelliJ, e.g. auto imports and so on and would be needed in any case.

The solution i would prefer is

* telling intellij to use code styled defined in es lint / prettier

* autoformat on save

* share all these settings for intellij with the whole team

I definitely see the point and I think this might make sense, but I also see why someone would not want this. In any case, if you'd like additional things to be done, please create an issue for it. It does not really have anything to do with what I did here (except its also IntelliJ configuration).

I do not want any additional things to be done. But adding inspectionProfiles to .gitignore is a step in the wrong direction. I would rather enforce more shared settings, than less. This PR makes it "worse" in this point.

@ztefanie
Copy link
Member

ztefanie commented Oct 23, 2024

Andy and I both do not have the problem with the inspection profiles being created, so this seems to be more a local problem of your setup that should be fixed locally.

Edit: maybe you can share these inspection profiles and we can check if we want them for all of us commited here?

@steffenkleinle
Copy link
Member Author

I know you are waiting for reviews on this, but I am not really happy with the solution you provided

What exactly do you not like about this? This is just a small PR for me to finally get rid of all those uncommitted changes which are really annoying. I don't think this worsens behavior in comparison to the current state. Adding inspectionProfiles to .gitignore does not change IntelliJ settings for anyone. The adjusted code style is just for generated code from IntelliJ, e.g. auto imports and so on and would be needed in any case.

The solution i would prefer is

* telling intellij to use code styled defined in es lint / prettier

* autoformat on save

* share all these settings for intellij with the whole team

I definitely see the point and I think this might make sense, but I also see why someone would not want this. In any case, if you'd like additional things to be done, please create an issue for it. It does not really have anything to do with what I did here (except its also IntelliJ configuration).

I do not want any additional things to be done. But adding inspectionProfiles to .gitignore is a step in the wrong direction. I would rather enforce more shared settings, than less. This PR makes it "worse" in this point.

Alright, I'll just revert the change. Atm I don't have any inspection profiles, but will push them if they ever reappear.

@steffenkleinle steffenkleinle merged commit 78cf343 into main Oct 24, 2024
1 check passed
@steffenkleinle steffenkleinle deleted the intellij-settings branch October 24, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants