editor-js / editor-js/document-model

chore(codestyle): fix object indentations

Open
#176 0 comments 1 reaction 2 assignees Claimed by @neSpecc View on GitHub
Dominant language
TypeScript
Stars
12
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Now we have ugly object properties indentations:

```js
mockCurrentSelection({ isBlockIndex: true,
blockIndex: 1 });
```

We need to tune Eslint configuration to enable IDE and autofix format code this way

```js
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

```ts

// now
function dispatchCopyEvent(): { preventDefault: jest.Mock;
setData: jest.Mock; } {
}

// should be
function dispatchCopyEvent(): {
preventDefault: jest.Mock;
setData: jest.Mock;
} {
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.