Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 6 additions & 36 deletions src/Uno.Templates/content/unoapp/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,57 +19,27 @@ charset = utf-8
# File Extension Settings
##########################################

[*.{yml,yaml}]
[*.{xaml,xml,yml,yaml,slnf,sln,csproj,proj,projitems,shproj,props,targets,appxmanifest,json,html,cshtml,webmanifest,manifest,css,vsconfig,sh,md,markdown}]
Copy link

Copilot AI Jul 19, 2025

Choose a reason for hiding this comment

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

The PR title contains a spelling error: 'intendation' should be 'indentation'. This same terminology issue appears to be reflected in the configuration grouping.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

in the configuration grouping I would not see this wrong spelled. Updated the title either way. rewording the branch would cancel the whole PR, which seems like unrequired trouble.

indent_size = 2
indent_style = space

[.vsconfig]
indent_size = 2
end_of_line = lf

[*.sln]
indent_style = tab
indent_size = 2

[*.{csproj,proj,projitems,shproj}]
indent_size = 4

[*.{json,slnf}]
indent_size = 2
[.{vsconfig,csproj,proj,projitems,sh,shproj,props,targets,json,slnf,css,webmanifest,manifest,plist}]
end_of_line = lf

[*.{props,targets}]
indent_size = 4

[*.xaml]
indent_size = 4
charset = utf-8-bom

[*.xml]
indent_size = 4
end_of_line = lf

[*.plist]
indent_size = 4
indent_style = tab
Comment on lines 33 to 34
Copy link

Copilot AI Jul 19, 2025

Choose a reason for hiding this comment

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

The plist file configuration conflicts with the consolidated rule above. Plist files are included in the consolidated rule with 2-space indentation, but this specific rule sets 4 spaces, creating inconsistent behavior.

Suggested change
indent_size = 4
indent_style = tab
indent_size = 2
indent_style = space

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not seeing conflict. above is only group set, that all of them are getting the lf eol, but the size and styling are only set for plist down here.

end_of_line = lf

[*.manifest]
indent_size = 4

[*.appxmanifest]
indent_size = 4

[*.{json,css,webmanifest}]
indent_size = 2
end_of_line = lf

[web.config]
indent_size = 4
end_of_line = lf

[*.sh]
indent_size = 2
end_of_line = lf
[*.{xml,xaml,json}]
# EOL should be normalized by Git. Setting to lf seems to mess up on Windows Hosts sometimes. See https://github.com/unoplatform/uno.templates/issues/1501
end_of_line = unset

[*.cs]
# EOL should be normalized by Git. See https://github.com/dotnet/format/issues/1099
Expand Down
Loading