chore(*): add .gitattributes with new lines configuration

Closes #10431
Closes #10605