Now we have ugly object properties indentations:
mockCurrentSelection({ isBlockIndex: true,
blockIndex: 1 });
We need to tune Eslint configuration to enable IDE and autofix format code this way
mockCurrentSelection({
isBlockIndex: true,
blockIndex: 1
});
- each property on its own separate line
- if object has a single property, it can stay on the same line with parentheses
- same for TS return types
// now
function dispatchCopyEvent(): { preventDefault: jest.Mock;
setData: jest.Mock; } {
}
// should be
function dispatchCopyEvent(): {
preventDefault: jest.Mock;
setData: jest.Mock;
} {
}
Now we have ugly object properties indentations:
We need to tune Eslint configuration to enable IDE and autofix format code this way