brace-style: Having a catch method on a plain ES6 class throws Closing curly brace does not appear on the same line as the subsequent brace style
#7974
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
regression
Something broke
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint v5.0.4
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
We are mocking a promise interface within a backing object for our unit tests as part of a fake HTTP backend implementation. It seems as though since v3.14.0 eslint thinks the catch method we have mocked here should always be a chained method call on a promise object.
What did you expect to happen?
For eslint to recognise this as a plain ES6 class and lint it as such
What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: