Skip to content

BUGFIX: Fix .editorconfig#28

Open
alexander-nitsche wants to merge 6 commits intocode-q-web-factory:masterfrom
alexander-nitsche:fix-editorconfig
Open

BUGFIX: Fix .editorconfig#28
alexander-nitsche wants to merge 6 commits intocode-q-web-factory:masterfrom
alexander-nitsche:fix-editorconfig

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