Skip to content

chore(codestyle): fix object indentations #176

Description

@neSpecc

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; 
 } {
 }

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions