In light of #15505, do we want to add .editorconfig into root of illumos-gate? I have using this for 4 years now (and the same is in use in OpenZFS):
=====================================
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{c,h}]
tab_width = 8
indent_style = tab
=====================================