Jamie-Yang / vue3-boilerplate

A Vue 3 Starter Boilerplate with Webpack 5, Vue Router 4, Pinia 2, TypeScript 5, Prettier and More.
MIT License
242 stars 88 forks source link

Fix prettier newline lint error #20

Closed ii64 closed 3 years ago

ii64 commented 3 years ago

Signed-off-by: ii64 26342994+ii64@users.noreply.github.com

ii64 commented 3 years ago

This is error the error image

Jamie-Yang commented 3 years ago

Can we add an .gitattributes file to solve this problem as explained in prettier‘s doc.

  1. Add * text=auto eol=lf to the repo’s .gitattributes file. You may need to ask Windows users to re-clone your repo after this change to ensure git has not converted LF to CRLF on checkout.
ii64 commented 3 years ago

That's cool alternative👍 Wonder if we can keep the git untouched (changing eol to lf) and go with auto configuration What about you