editor-js / editor-js/document-model
chore(codestyle): fix object indentations
- 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
Assessment
This issue has not been assessed yet.