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

BUGFIX: Fix .editorconfig #28

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

alexander-nitsche
Copy link

While using your skeleton for my first Neos project, i (and PHPStorm) became aware of some inconsistencies in the .editorconfig. Some fixes are required, and some are nice to have. In the last commit i adapted it to the .editorconfig of the Neos Development Collection which uses a 2 spaces indentation by default instead of a 4 spaces. This reduces the set of rules, but maybe you still want to revert that last commit.

@alexander-nitsche
Copy link
Author

alexander-nitsche commented Sep 14, 2022

What has also changed with the last commit is:

  • Fusion uses 2 spaces indentation
  • JSON uses 2 spaces indentation

There are no JSON files in the skeleton, but there are Fusion files that would have to be reformatted if you keep this last commit. I checked it for the Neos Development Collection and indeed als Fusion and JSON files use the 2 spaces indentation.

EditorConfig files are read from top to bottom and the last
rules found have priority: The rules of package.json regarding
indentation style and indentation size did not apply because
they were overwritten by the following rules for "*.json".
These removed rules have already been defined as default.
Set 2 spaces as default indentation instead of 4.
@alexander-nitsche
Copy link
Author

Updated the author email address in all commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant