gajus / eslint-plugin-flowtype

Flow type linting rules for ESLint.
Other
1.08k stars 153 forks source link

generic-spacing doesn't support CRLF line breaks #485

Closed avi-moskoff closed 3 years ago

avi-moskoff commented 3 years ago

The generic-spacing rule doesn't support CRLF line breaks.

// Passes
type X =  Promise<\n    (foo),\n    bar,\n    (((baz)))\n>

// Doesn't pass
type X =  Promise<\r\n    (foo),\r\n    bar,\r\n    (((baz)))\r\n>
avi-moskoff commented 3 years ago

Thank you for getting this in so quickly!