-
Notifications
You must be signed in to change notification settings - Fork 1
eslint conflicting with prettier rule #13
Comments
See WebDevStudios/js-coding-standards#13 This is a test to ensure that a line is required on comments above.
I can confirm that this is not comming from eslint-config and we need to remove the prettier rule this conflicts with. |
So after some googling, it turns out Prettier forces you to collapse empty lines, see:
Now, the issue is that an empty line and a comment is seen a double 2 lines, which it collapses.
So what this means is that Prettier actually breaks one of our JavasScript rules which requires a blank line above comments, e.g. ...only when the comment is the first comment of the function, this works: if ( true ) {
let a = true;
// The blank line above will not be collapsed by prettier.
return true;
} This does not, however, get fixed. |
This issue that arises, in how |
i have this issue too |
The text was updated successfully, but these errors were encountered: