sveltejs / eslint-plugin-svelte3

An ESLint plugin for Svelte v3 components.
MIT License
373 stars 43 forks source link

Errors with linebreak-style: ["error", "windows"] #33

Closed orlov-vo closed 5 years ago

orlov-vo commented 5 years ago

Hello!

I have errors in Svelte files when I have CRLF symbols on the end of lines and enabled rule linebreak-style with windows style:

  28:0   error    Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  36:18  error    Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  36:29  error    Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style

I think a cause of the problem is in this lines:

https://github.com/sveltejs/eslint-plugin-svelte3/blob/db8aa82022addc212cc8132d1d3fdf0243102997/index.js#L131 https://github.com/sveltejs/eslint-plugin-svelte3/blob/db8aa82022addc212cc8132d1d3fdf0243102997/index.js#L142

Conduitry commented 5 years ago

This should be fixed in 2.7.2. Can you try it out please?

orlov-vo commented 5 years ago

Yes, it is work for me now!