chore: Improve editorconfig configuration
This improves the editorconfig configuration to
- Trim whitespace automatically on all doc/ markdown
- Exclude vendor/ resources from editorconfig rules
Spun out of !33193 (comment 1352533812)
Edited by Andrew Newdigate