vue-realworld-example-app icon indicating copy to clipboard operation
vue-realworld-example-app copied to clipboard

🔨 Update Prettier to remove some CRLF Warnings

Open TerabyteTiger opened this issue 5 years ago • 2 comments

TLDR

Add Prettier setting to account for end of line differences between Operating Systems (~80 down to 27).

Details

On Windows, I'm receiving about 80 of these errors when running yarn serve:

Console error message to delete CR

Based on what I'm seeing here this is an Operating System difference causing the warnings and telling Prettier to detect the end of line type will adjust this.

TerabyteTiger avatar Oct 08 '19 13:10 TerabyteTiger

Hmm the option is set to "auto" by default. I think the PR will not change everything in functionality. I just think because we introduced the .editorconfig file later some files got commited with wrong line endings

igeligel avatar Oct 08 '19 15:10 igeligel

That's strange - why would specifying it as "auto" cause a different effect?

Would a preferred route be to lint the files instead so they align with the editor profile settings?

TerabyteTiger avatar Oct 08 '19 16:10 TerabyteTiger