Adapt editorconfig to project conventions

The rules in the `.editorconfig` don't seem to be correct as the project is using 2 spaces in almost all places.