I want to set up an eslint rule for this scenario:
// incorrect
[
'onClickSave',
'onClickCancel'].forEach(bind(this));
// correct
[
'onClickSave',
'onClickCancel'
].forEach(bind(this));
When declaring an object or array with multiple lines, the brackets should be on a new line.
Is there an existing eslint rule for this, or how can I achieve it?