Closed davidlehn closed 4 years ago
This is usually caught by intentation errors:
4:1 error Opening curly brace does not appear on the same line as controlling statement brace-style
4:1 error Expected indentation of 2 spaces but found 0 indent
This will lead to some minor issues with line length where maybe it would have been easier to drop the curly brace to the next line, but I think in most cases this will be fine and in the line length case your code could probably be broken into smaller functions anyways.
@mattcollier I can't do releases yet... or can I so if you are happy with this addition I'm ok with it and we could bump the release. I probably should be handling releases for this at this point.
https://eslint.org/docs/rules/brace-style
When doing a code review it surprised @dlongley that we didn't already check.