fix multiline ternary linting
This commit is contained in:
parent
5811b34b75
commit
0bd2ea7faa
2 changed files with 4 additions and 2 deletions
|
|
@ -231,7 +231,9 @@ export default function ChannelInfoForm({
|
|||
const spaceOnTop = otherElementsSize - scrollPosition - AUTOCOMPLETE_ADJUST;
|
||||
const spaceOnBottom = (workingSpace + scrollPosition) - (otherElementsSize + headerFieldHeight + BOTTOM_AUTOCOMPLETE_SEPARATION);
|
||||
|
||||
const autocompletePosition = spaceOnBottom > spaceOnTop ? (otherElementsSize + headerFieldHeight) - scrollPosition : (workingSpace + scrollPosition + AUTOCOMPLETE_ADJUST + keyboardOverlap) - otherElementsSize;
|
||||
const autocompletePosition = spaceOnBottom > spaceOnTop ?
|
||||
(otherElementsSize + headerFieldHeight) - scrollPosition :
|
||||
(workingSpace + scrollPosition + AUTOCOMPLETE_ADJUST + keyboardOverlap) - otherElementsSize;
|
||||
const autocompleteAvailableSpace = spaceOnBottom > spaceOnTop ? spaceOnBottom : spaceOnTop;
|
||||
const growDown = spaceOnBottom > spaceOnTop;
|
||||
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@
|
|||
],
|
||||
"multiline-ternary": [
|
||||
1,
|
||||
"never"
|
||||
"always-multiline"
|
||||
],
|
||||
"new-cap": 2,
|
||||
"new-parens": 2,
|
||||
|
|
|
|||
Loading…
Reference in a new issue